summaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorIdo Schimmel <idosch@mellanox.com>2020-07-29 12:26:45 +0300
committerDavid S. Miller <davem@davemloft.net>2020-07-29 22:16:21 +0300
commit7d8e8f3433dc8d1dc87c1aabe73a154978fb4c4d (patch)
tree625e2105616b54d122267c0c790f2ffeee7ae8a1 /lib/mpi/mpi-sub-ui.c
parentec4f5b3617049d474b3263792785b638640f2dbe (diff)
downloadlinux-7d8e8f3433dc8d1dc87c1aabe73a154978fb4c4d.tar.xz
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>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions