diff options
Diffstat (limited to 'net/sctp/socket.c')
-rw-r--r-- | net/sctp/socket.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/sctp/socket.c b/net/sctp/socket.c index f631c5ff4dbf..6abb1caf9836 100644 --- a/net/sctp/socket.c +++ b/net/sctp/socket.c | |||
@@ -4003,6 +4003,12 @@ SCTP_STATIC void sctp_destroy_sock(struct sock *sk) | |||
4003 | 4003 | ||
4004 | /* Release our hold on the endpoint. */ | 4004 | /* Release our hold on the endpoint. */ |
4005 | sp = sctp_sk(sk); | 4005 | sp = sctp_sk(sk); |
4006 | /* This could happen during socket init, thus we bail out | ||
4007 | * early, since the rest of the below is not setup either. | ||
4008 | */ | ||
4009 | if (sp->ep == NULL) | ||
4010 | return; | ||
4011 | |||
4006 | if (sp->do_auto_asconf) { | 4012 | if (sp->do_auto_asconf) { |
4007 | sp->do_auto_asconf = 0; | 4013 | sp->do_auto_asconf = 0; |
4008 | list_del(&sp->auto_asconf_list); | 4014 | list_del(&sp->auto_asconf_list); |