|
@@ -437,11 +437,11 @@ static void pppol2tp_session_close(struct l2tp_session *session)
|
|
|
|
|
|
BUG_ON(session->magic != L2TP_SESSION_MAGIC);
|
|
BUG_ON(session->magic != L2TP_SESSION_MAGIC);
|
|
|
|
|
|
- if (sock) {
|
|
|
|
|
|
+ if (sock)
|
|
inet_shutdown(sock, SEND_SHUTDOWN);
|
|
inet_shutdown(sock, SEND_SHUTDOWN);
|
|
- /* Don't let the session go away before our socket does */
|
|
|
|
- l2tp_session_inc_refcount(session);
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
|
|
+ /* Don't let the session go away before our socket does */
|
|
|
|
+ l2tp_session_inc_refcount(session);
|
|
}
|
|
}
|
|
|
|
|
|
/* Really kill the session socket. (Called from sock_put() if
|
|
/* Really kill the session socket. (Called from sock_put() if
|