aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/raw.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv6/raw.c')
-rw-r--r--net/ipv6/raw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv6/raw.c b/net/ipv6/raw.c
index e03c1898ab2e..70a57e45bf0e 100644
--- a/net/ipv6/raw.c
+++ b/net/ipv6/raw.c
@@ -1167,7 +1167,8 @@ static int raw6_destroy(struct sock *sk)
1167 lock_sock(sk); 1167 lock_sock(sk);
1168 ip6_flush_pending_frames(sk); 1168 ip6_flush_pending_frames(sk);
1169 release_sock(sk); 1169 release_sock(sk);
1170 return 0; 1170
1171 return inet6_destroy_sock(sk);
1171} 1172}
1172 1173
1173static int rawv6_init_sk(struct sock *sk) 1174static int rawv6_init_sk(struct sock *sk)
@@ -1198,7 +1199,6 @@ struct proto rawv6_prot = {
1198 .disconnect = udp_disconnect, 1199 .disconnect = udp_disconnect,
1199 .ioctl = rawv6_ioctl, 1200 .ioctl = rawv6_ioctl,
1200 .init = rawv6_init_sk, 1201 .init = rawv6_init_sk,
1201 .destroy = inet6_destroy_sock,
1202 .setsockopt = rawv6_setsockopt, 1202 .setsockopt = rawv6_setsockopt,
1203 .getsockopt = rawv6_getsockopt, 1203 .getsockopt = rawv6_getsockopt,
1204 .sendmsg = rawv6_sendmsg, 1204 .sendmsg = rawv6_sendmsg,