WSL2-Linux-Kernel/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
..
Kconfig
Makefile
address-claim.c
bus.c
j1939-priv.h
main.c can: j1939: warn if resources are still linked on destroy 2019-11-13 10:42:34 +01: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