1
0
Fork 0
alistair23-linux/net/can
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
..
j1939 can: j1939: warn if resources are still linked on destroy 2019-11-13 10:42:34 +01:00
Kconfig can: add support of SAE J1939 protocol 2019-09-04 14:22:33 +02:00
Makefile can: add support of SAE J1939 protocol 2019-09-04 14:22:33 +02:00
af_can.c can: af_can: export can_sock_destruct() 2019-11-13 10:42:33 +01:00
af_can.h can: introduce CAN midlayer private and allocate it automatically 2019-09-04 13:29:14 +02:00
bcm.c can: introduce CAN_REQUIRED_SIZE macro 2019-09-04 13:29:15 +02:00
gw.c can: gw: add support for CAN FD frames 2019-08-13 17:32:21 +02:00
proc.c can: introduce CAN midlayer private and allocate it automatically 2019-09-04 13:29:14 +02:00
raw.c can: introduce CAN_REQUIRED_SIZE macro 2019-09-04 13:29:15 +02:00