commit | 25fe97cb7620ef2e6b4f44ef0de4e371adf6c1d0 | [log] [tgz] |
---|---|---|
author | Oleksij Rempel <o.rempel@pengutronix.de> | Thu Nov 07 11:57:36 2019 +0100 |
committer | Marc Kleine-Budde <mkl@pengutronix.de> | Wed Nov 13 10:42:33 2019 +0100 |
tree | 6dab8ddc70be226d9afd6faa2baf70cd57428768 | |
parent | 975987e7015bb12a482df7f14fd524417d2c8e8f [diff] |
can: j1939: move j1939_priv_put() into sk_destruct callback This patch delays the j1939_priv_put() until the socket is destroyed via the sk_destruct callback, to avoid use-after-free problems. Fixes: 9d71dd0c7009 ("can: add support of SAE J1939 protocol") Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>