Julia Lawall
609ccf0877
netfilter: nf_tables: fix error return code
...
Convert a zero return value on error to a negative one, as returned
elsewhere in the function.
A simplified version of the semantic match that finds this problem is as
follows: (http://coccinelle.lip6.fr/ )
// <smpl>
@@
identifier ret; expression e1,e2;
@@
(
if (\(ret < 0\|ret != 0\))
{ ... return ret; }
|
ret = 0
)
... when != ret = e1
when != &ret
*if(...)
{
... when != ret = e2
when forall
return ret;
}
// </smpl>
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
2014-08-08 16:47:29 +02:00
..
2014-06-05 00:49:51 -07:00
2014-08-08 16:47:23 +02:00
2014-08-08 16:47:23 +02:00
2014-06-28 18:49:49 +02:00
2014-06-27 13:19:59 +02:00
2013-11-03 21:48:49 +01:00
2013-04-18 20:27:55 +02:00
2011-01-18 18:12:24 +01:00
2014-06-25 19:15:38 +02:00
2014-06-25 19:15:38 +02:00
2014-03-07 11:41:01 +01:00
2012-06-16 15:08:49 +02:00
2013-05-27 13:32:43 +02:00
2011-04-04 15:21:02 +02:00
2014-03-07 11:41:01 +01:00
2008-01-31 19:28:07 -08:00
2014-03-07 11:41:13 +01:00
2013-04-18 20:27:55 +02:00
2008-04-14 11:15:52 +02:00
2013-07-31 16:39:18 +02:00
2011-01-18 18:12:24 +01:00
2014-07-20 21:01:43 -07:00
2014-04-08 10:56:12 +02:00
2014-01-06 17:40:02 +01:00
2012-07-04 19:37:22 +02:00
2014-04-08 10:56:12 +02:00
2013-04-18 20:27:55 +02:00
2013-08-28 00:27:54 +02:00
2013-04-18 20:27:55 +02:00
2013-04-05 20:12:54 +02:00
2014-01-03 23:41:37 +01:00
2013-02-19 02:48:05 +01:00
2014-01-06 14:23:17 +01:00
2014-03-07 11:41:01 +01:00
2013-01-18 00:28:18 +01:00
2013-06-13 02:36:09 -07:00
2013-04-18 20:27:55 +02:00
2013-01-23 12:56:02 +01:00
2013-12-20 14:58:29 +01:00
2013-10-19 19:12:11 -04:00
2014-06-27 13:19:59 +02:00
2014-06-27 13:20:47 +02:00
2013-04-18 20:27:55 +02:00
2014-07-20 21:01:43 -07:00
2013-02-19 02:48:05 +01:00
2013-08-28 00:26:48 +02:00
2014-01-06 14:17:17 +01:00
2014-06-30 11:38:03 +02:00
2014-06-30 11:38:03 +02:00
2014-06-30 11:38:03 +02:00
2014-06-30 11:38:03 +02:00
2014-06-30 11:38:03 +02:00
2014-06-30 11:38:03 +02:00
2012-08-30 03:00:14 +02:00
2013-10-01 12:47:09 +02:00
2013-02-19 02:48:05 +01:00
2013-04-29 20:09:05 +02:00
2014-08-08 16:47:23 +02:00
2014-02-05 17:46:06 +01:00
2014-08-08 16:47:29 +02:00
2014-07-14 12:00:17 +02:00
2014-01-09 23:25:48 +01:00
2014-07-31 19:55:47 +02:00
2013-06-20 11:20:13 +02:00
2013-10-01 13:17:39 +02:00
2014-06-27 13:20:13 +02:00
2014-03-27 15:29:38 -04:00
2013-08-28 00:26:48 +02:00
2014-05-12 13:19:14 -04:00
2013-10-14 17:16:08 +02:00
2013-10-14 17:16:08 +02:00
2014-04-14 10:38:02 +02:00
2014-06-16 13:08:04 +02:00
2013-10-14 17:16:08 +02:00
2014-04-02 21:29:45 +02:00
2013-10-14 17:16:08 +02:00
2013-12-20 11:25:10 +01:00
2014-08-02 19:49:38 -07:00
2014-03-08 12:35:17 +01:00
2013-10-14 17:16:08 +02:00
2014-06-29 13:55:08 +02:00
2014-05-19 12:06:10 +02:00
2014-04-23 13:55:30 +02:00
2014-06-16 13:08:14 +02:00
2014-02-17 11:21:17 +01:00
2014-02-06 11:41:38 +01:00
2014-06-02 10:54:31 +02:00
2014-02-14 11:37:33 +01:00
2014-02-06 09:44:10 +01:00
2014-08-08 16:47:23 +02:00
2013-07-31 16:36:25 +02:00
2014-03-13 14:13:19 +01:00
2014-08-02 15:03:58 -07:00
2014-04-03 23:52:17 +02:00
2010-07-15 17:20:46 +02:00
2010-11-15 13:57:56 +01:00
2010-06-08 16:09:52 +02:00
2010-05-11 18:33:37 +02:00
2013-11-03 21:48:49 +01:00
2013-01-18 00:28:15 +01:00
2014-04-03 23:52:13 +02:00
2013-12-06 12:37:57 -05:00
2010-05-11 18:31:17 +02:00
2013-04-18 20:27:55 +02:00
2011-01-18 06:33:54 +01:00
2014-02-05 17:46:06 +01:00
2010-05-11 18:35:27 +02:00
2011-02-03 00:05:43 +01:00
2010-05-11 18:33:37 +02:00
2011-05-10 10:00:21 +02:00
2011-12-27 20:45:25 +01:00
2010-05-11 18:35:27 +02:00
2014-07-24 13:07:25 +02:00
2010-05-11 18:33:37 +02:00
2011-07-01 16:11:15 -07:00
2011-07-01 16:11:15 -07:00
2012-11-09 17:05:07 -08:00
2011-11-01 09:19:49 +01:00
2014-02-19 11:41:25 +01:00
2011-02-04 14:28:58 -08:00
2012-09-28 11:34:33 +09:00
2014-01-09 21:36:39 +01:00
2014-08-05 18:46:26 -07:00
2010-05-11 18:33:37 +02:00
2013-04-18 20:27:55 +02:00
2014-06-28 18:50:35 +02:00
2012-05-09 20:49:18 -04:00
2010-05-11 18:33:37 +02:00
2010-05-11 18:35:27 +02:00
2012-10-15 13:39:12 +02:00
2012-09-21 12:11:08 +02:00
2014-04-29 18:25:14 +02:00
2013-05-15 14:11:07 +02:00
2013-12-07 23:20:45 +01:00
2014-04-03 23:52:22 +02:00
2012-08-14 21:55:30 -07:00
2010-05-11 18:33:37 +02:00
2010-05-11 18:33:37 +02:00
2010-05-11 18:33:37 +02:00
2011-10-31 19:30:28 -04:00
2013-06-11 02:51:03 -07:00
2014-01-06 14:00:55 +01:00
2010-05-11 18:33:37 +02:00
2014-06-05 00:49:51 -07:00
2012-09-21 12:12:05 +02:00
2014-06-07 11:44:39 -07:00
2010-06-09 14:47:40 +02:00
2010-10-21 10:12:48 +11:00
2013-11-15 16:47:22 -08:00
2013-10-17 10:27:25 +02:00
2010-06-08 16:09:52 +02:00
2014-01-14 15:15:25 -08:00
2010-05-11 18:33:37 +02:00
2010-05-11 18:35:27 +02:00
2013-09-27 16:18:23 +02:00
2013-08-01 11:45:15 +02:00
2010-05-11 18:35:27 +02:00
2013-05-28 13:11:01 -07:00
2012-09-24 14:29:01 +02:00
2013-10-09 00:01:25 -04:00
2010-05-11 18:31:17 +02:00
2010-05-11 18:33:37 +02:00