alistair23-linux/net/can/j1939
Oleksij Rempel 4a15d574e6 can: j1939: warn if resources are still linked on destroy
j1939_session_destroy() and __j1939_priv_release() should be called only
if session, ecu or socket are not linked or used by any one else. If at
least one of these resources is linked, then the reference counting is
broken somewhere.

This warning will be triggered before KASAN will do, and will make it
easier to debug initial issue. This works on platforms without KASAN
support.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
2019-11-13 10:42:34 +01:00
..
address-claim.c can: add support of SAE J1939 protocol 2019-09-04 14:22:33 +02:00
bus.c can: add support of SAE J1939 protocol 2019-09-04 14:22:33 +02:00
j1939-priv.h can: add support of SAE J1939 protocol 2019-09-04 14:22:33 +02:00
Kconfig can: add support of SAE J1939 protocol 2019-09-04 14:22:33 +02:00
main.c can: j1939: warn if resources are still linked on destroy 2019-11-13 10:42:34 +01:00
Makefile can: add support of SAE J1939 protocol 2019-09-04 14:22:33 +02:00
socket.c can: j1939: socket: rework socket locking for j1939_sk_release() and j1939_sk_sendmsg() 2019-11-13 10:42:34 +01:00
transport.c can: j1939: warn if resources are still linked on destroy 2019-11-13 10:42:34 +01:00