aboutsummaryrefslogtreecommitdiffstats
path: root/net/x25/af_x25.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/x25/af_x25.c')
-rw-r--r--net/x25/af_x25.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/x25/af_x25.c b/net/x25/af_x25.c
index bcb091f713ec..7b1c6ef04553 100644
--- a/net/x25/af_x25.c
+++ b/net/x25/af_x25.c
@@ -612,8 +612,7 @@ static int x25_release(struct socket *sock)
612 break; 612 break;
613 } 613 }
614 614
615 sock->sk = NULL; 615 sock_orphan(sk);
616 sk->sk_socket = NULL; /* Not used, but we should do this */
617out: 616out:
618 return 0; 617 return 0;
619} 618}