diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/sctp/socket.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/sctp/socket.c b/net/sctp/socket.c index 5462bbbb52ef..911b71b26b0e 100644 --- a/net/sctp/socket.c +++ b/net/sctp/socket.c | |||
@@ -806,6 +806,9 @@ static int sctp_send_asconf_del_ip(struct sock *sk, | |||
806 | goto skip_mkasconf; | 806 | goto skip_mkasconf; |
807 | } | 807 | } |
808 | 808 | ||
809 | if (laddr == NULL) | ||
810 | return -EINVAL; | ||
811 | |||
809 | /* We do not need RCU protection throughout this loop | 812 | /* We do not need RCU protection throughout this loop |
810 | * because this is done under a socket lock from the | 813 | * because this is done under a socket lock from the |
811 | * setsockopt call. | 814 | * setsockopt call. |