commit | d966635b384b9571a43bd38c61f280c47eb564ad | [log] [tgz] |
---|---|---|
author | Oleksij Rempel <o.rempel@pengutronix.de> | Thu Nov 07 18:46:38 2019 +0100 |
committer | Marc Kleine-Budde <mkl@pengutronix.de> | Wed Nov 13 10:42:34 2019 +0100 |
tree | 6b4af93485707a092043200d9971f8c5e6400564 | |
parent | fd81ebfe7975b9a69494430676d16f7125aac3ee [diff] |
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>