diff options
author | Oliver Hartkopp <socketcan@hartkopp.net> | 2021-06-18 19:36:45 +0200 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2021-06-19 23:53:43 +0200 |
commit | fb8696ab14adadb2e3f6c17c18ed26b3ecd96691 (patch) | |
tree | 573f90a216dca4749d809eae4e1860a08eb06eee /README | |
parent | d5f9023fa61ee8b94f37a93f08e94b136cf1e463 (diff) | |
download | linux-fb8696ab14adadb2e3f6c17c18ed26b3ecd96691.tar.bz2 |
can: gw: synchronize rcu operations before removing gw job entry
can_can_gw_rcv() is called under RCU protection, so after calling
can_rx_unregister(), we have to call synchronize_rcu in order to wait
for any RCU read-side critical sections to finish before removing the
kmem_cache entry with the referenced gw job entry.
Link: https://lore.kernel.org/r/20210618173645.2238-1-socketcan@hartkopp.net
Fixes: c1aabdf379bc ("can-gw: add netlink based CAN routing")
Cc: linux-stable <stable@vger.kernel.org>
Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions