Dan Carpenter
c391eb8366
mlxsw: Fix some IS_ERR() vs NULL bugs
...
The mlxsw_sp_acl_rulei_create() function is supposed to return an error
pointer from mlxsw_afa_block_create(). The problem is that these
functions both return NULL instead of error pointers. Half the callers
expect NULL and half expect error pointers so it could lead to a NULL
dereference on failure.
This patch changes both of them to return error pointers and changes all
the callers which checked for NULL to check for IS_ERR() instead.
Fixes: 4cda7d8d70 ("mlxsw: core: Introduce flexible actions support")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com >
Reviewed-by: Ido Schimmel <idosch@mellanox.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2020-04-23 12:34:43 -07:00
..
2020-02-11 10:43:36 +01:00
2020-04-10 09:52:15 -07:00
2019-10-23 06:26:33 -04:00
2020-03-23 07:59:38 +01:00
2020-04-09 09:31:38 -06:00
2020-03-25 11:50:48 +01:00
2020-03-23 07:59:38 +01:00
2020-04-07 10:43:41 -07:00
2020-04-13 08:55:49 +02:00
2020-03-16 08:57:40 +01:00
2020-04-03 15:05:35 -07:00
2020-02-24 15:06:07 -05:00
2020-04-10 17:57:48 -07:00
2020-04-05 10:43:32 -07:00
2020-04-05 09:24:58 +02:00
2020-03-08 17:28:53 +00:00
2020-04-06 10:14:39 -07:00
2020-04-10 11:32:22 +02:00
2020-04-08 21:35:29 -07:00
2020-04-02 19:15:03 -07:00
2019-05-24 17:27:11 +02:00
2020-03-25 08:35:03 +09:00
2020-03-09 11:12:19 +01:00
2020-04-10 15:36:22 -07:00
2020-04-08 09:14:34 +10:00
2020-03-30 16:40:08 -07:00
2020-03-25 11:50:48 +01:00
2020-04-03 13:22:40 -07:00
2020-01-06 09:45:59 +01:00
2020-04-14 08:32:15 +02:00
2020-01-10 12:51:56 -08:00
2020-02-10 13:45:49 -08:00
2019-05-21 10:50:46 +02:00
2020-04-04 10:27:00 -07:00
2020-04-11 09:46:12 -07:00
2019-10-10 15:24:19 +02:00
2020-04-01 15:18:42 -07:00
2020-02-14 10:37:23 +01:00
2020-04-14 11:58:04 -07:00
2020-04-10 15:36:22 -07:00
2020-03-25 22:30:46 -07:00
2020-03-24 13:45:24 +01:00
2020-04-02 15:54:13 -07:00
2020-03-29 10:35:50 +02:00
2020-04-04 18:07:59 -07:00
2020-03-30 16:40:08 -07:00
2020-04-08 21:25:49 -07:00
2020-04-01 18:18:18 -07:00
2020-04-07 20:20:12 -07:00
2020-03-20 13:45:25 +01:00
2020-03-27 11:33:27 +01:00
2020-01-06 09:45:59 +01:00
2020-04-05 11:57:12 -07:00
2020-04-16 13:52:31 -07:00
2020-04-06 23:12:08 +02:00
2020-03-30 11:43:51 -07:00
2020-04-03 13:22:40 -07:00
2020-03-19 23:04:32 -05:00
2020-04-08 21:03:40 -07:00
2020-03-30 15:05:01 -07:00
2020-04-03 15:05:35 -07:00
2019-12-03 13:58:22 -08:00
2020-03-26 22:40:47 -04:00
2020-03-30 07:35:28 +01:00
2020-04-08 10:51:53 -07:00
2020-03-31 16:13:09 -07:00
2020-03-24 13:42:44 +01:00
2020-04-07 12:40:56 -07:00
2020-04-23 12:34:43 -07:00
2020-03-25 18:58:11 -07:00
2020-04-03 14:25:02 -07:00
2020-04-08 21:03:40 -07:00
2020-04-10 10:06:54 -07:00
2020-03-25 19:23:49 +01:00
2020-04-02 17:32:52 -07:00
2020-01-13 13:19:38 -05:00
2020-04-05 22:05:23 +02:00
2020-04-08 11:00:00 -07:00
2020-03-31 18:48:22 +02:00
2020-03-31 10:05:01 -07:00
2020-04-03 14:25:02 -07:00
2020-04-04 10:27:00 -07:00
2020-04-16 15:00:57 -07:00
2020-02-04 03:05:26 +00:00
2020-04-10 15:36:22 -07:00
2020-03-30 16:40:08 -07:00
2019-07-16 19:23:24 -07:00
2020-04-03 00:09:59 +11:00
2020-04-21 15:45:32 -07:00
2020-04-03 21:41:42 +02:00
2019-12-04 19:44:13 -08:00
2020-03-30 14:58:26 -07:00
2020-04-03 10:47:21 -07:00
2020-02-10 11:11:55 +01:00
2020-01-20 10:29:56 -08:00
2020-04-07 19:48:52 -07:00
2020-04-10 12:21:11 -07:00
2020-03-18 12:27:04 +01:00
2020-04-10 12:21:11 -07:00
2019-05-21 10:50:46 +02:00
2020-01-06 09:45:59 +01:00
2020-01-14 21:46:53 +01:00
2020-04-09 10:51:30 -07:00
2020-04-03 13:22:40 -07:00
2020-04-02 15:50:04 -07:00
2020-02-10 13:16:04 +01:00
2020-04-10 15:36:21 -07:00
2020-04-10 12:21:11 -07:00
2020-01-31 11:28:31 -08:00
2020-04-03 15:05:35 -07:00
2020-04-07 20:00:16 -07:00
2020-03-23 08:04:08 +01:00
2020-04-05 11:12:59 -07:00
2020-03-18 12:34:10 +01:00
2020-04-02 17:03:53 -07:00
2020-04-02 10:41:40 -04:00
2020-04-01 13:51:51 -06:00
2020-04-02 10:41:40 -04:00
2020-04-07 20:24:34 -07:00
2020-03-19 07:41:03 +01:00
2020-04-08 10:51:53 -07:00
2020-01-14 15:30:35 +01:00
2020-01-29 10:35:54 -08:00
2020-01-29 10:35:54 -08:00
2020-04-01 11:35:23 +02:00
2020-04-10 17:20:06 -07:00
2020-04-03 13:12:26 -07:00
2020-04-08 10:51:53 -07:00
2020-04-08 10:51:53 -07:00