• Oleksij Rempel's avatar
    can: j1939: warn if resources are still linked on destroy · 4a15d574
    Oleksij Rempel authored
    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
    Signed-off-by: default avatarOleksij Rempel <o.rempel@pengutronix.de>