[PATCH v1 08/21] j1939: no need to deactivate not active sessions

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

 



Signed-off-by: Oleksij Rempel <o.rempel@xxxxxxxxxxxxxx>
---
 net/can/j1939/socket.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/net/can/j1939/socket.c b/net/can/j1939/socket.c
index e599286f4c28..7cc5d13f4885 100644
--- a/net/can/j1939/socket.c
+++ b/net/can/j1939/socket.c
@@ -135,8 +135,6 @@ static void j1939_sk_queue_drop_all(struct j1939_sock *jsk)
 	list_for_each_entry_safe_reverse(session, tmp, &jsk->sk_session_queue,
 					 sk_session_queue_entry) {
 		list_del_init(&session->sk_session_queue_entry);
-		j1939_session_timers_cancel(session);
-		j1939_session_deactivate(session);
 		j1939_session_put(session);
 	}
 	spin_unlock_bh(&jsk->sk_session_queue_lock);
-- 
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