[PATCH v1 14/34] j1939: don't call j1939_tp_rmdev_notifier() on __j1939_priv_release()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Automotive Discussions]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [CAN Bus]

  Powered by Linux