summaryrefslogtreecommitdiffstats
path: root/lib/bch.c
diff options
context:
space:
mode:
authorOleksij Rempel <o.rempel@pengutronix.de>2019-11-07 18:46:38 +0100
committerMarc Kleine-Budde <mkl@pengutronix.de>2019-11-13 10:42:34 +0100
commitd966635b384b9571a43bd38c61f280c47eb564ad (patch)
tree6b4af93485707a092043200d9971f8c5e6400564 /lib/bch.c
parentcan: j1939: socket: rework socket locking for j1939_sk_release() and j1939_sk... (diff)
downloadlinux-d966635b384b9571a43bd38c61f280c47eb564ad.tar.xz
linux-d966635b384b9571a43bd38c61f280c47eb564ad.zip
can: j1939: transport: make sure the aborted session will be deactivated only once
j1939_session_cancel() was modifying session->state without protecting it by locks and without checking actual state of the session. This patch moves j1939_tp_set_rxtimeout() into j1939_session_cancel() and adds the missing locking. Fixes: 9d71dd0c7009 ("can: add support of SAE J1939 protocol") Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Diffstat (limited to 'lib/bch.c')
0 files changed, 0 insertions, 0 deletions