j1939_tp_rmdev_notifier() should abort all session, but we can't call __j1939_priv_release() any way if some session is still running. Signed-off-by: Oleksij Rempel <o.rempel@xxxxxxxxxxxxxx> --- net/can/j1939/main.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/net/can/j1939/main.c b/net/can/j1939/main.c index bdb6de2a25da..fb31eea9d8bc 100644 --- a/net/can/j1939/main.c +++ b/net/can/j1939/main.c @@ -137,9 +137,6 @@ static void __j1939_priv_release(struct kref *kref) can_rx_unregister(dev_net(ndev), ndev, J1939_CAN_ID, J1939_CAN_MASK, j1939_can_recv, priv); - /* remove pending transport protocol sessions */ - j1939_tp_rmdev_notifier(priv); - /* unlink from netdev */ j1939_priv_set(ndev, NULL); netdev_dbg(priv->ndev, "__j1939_priv_release: 0x%p\n", priv); -- 2.20.1