Ido Schimmel 7d8e8f3433 mlxsw: core: Increase scope of RCU read-side critical section
The lifetime of the Rx listener item ('rxl_item') is managed using RCU,
but is dereferenced outside of RCU read-side critical section, which can
lead to a use-after-free.

Fix this by increasing the scope of the RCU read-side critical section.

Fixes: 93c1edb27f9e ("mlxsw: Introduce Mellanox switch driver core")
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-07-29 12:16:21 -07:00
..
2020-07-03 16:15:31 +02:00
2020-06-19 13:09:40 -07:00
2020-07-17 09:58:18 -07:00
2020-07-16 11:26:40 -07:00
2020-07-16 11:26:40 -07:00
2020-07-15 15:58:11 -07:00
2020-07-25 13:18:42 -07:00
2020-06-26 17:26:31 +02:00
2020-06-26 23:53:25 +02:00
2020-06-04 11:03:45 -07:00
2020-06-02 15:29:19 -07:00
2020-06-29 19:10:51 +02:00
2020-07-07 21:04:38 +02:00
2020-07-24 18:30:24 -07:00
2020-07-08 18:00:07 +02:00
2020-06-28 01:08:21 +02:00
2020-06-13 13:29:16 -07:00
2020-06-04 19:09:28 +02:00
2020-06-08 13:01:08 -07:00
2020-06-08 13:01:08 -07:00
2020-06-07 16:11:23 -07:00
2020-07-16 22:08:07 +02:00
2020-07-17 10:24:09 -07:00
2020-07-22 11:56:00 -07:00
2020-06-13 13:29:16 -07:00
2020-07-16 11:10:27 -07:00
2020-07-16 17:30:59 +02:00
2020-06-22 12:34:21 -04:00
2020-07-24 18:30:24 -07:00
2020-07-11 11:16:46 -07:00