]> Pileus Git - ~andy/linux/blobdiff - net/sctp/socket.c
net: sctp: fix smatch warning in sctp_send_asconf_del_ip
[~andy/linux] / net / sctp / socket.c
index 5462bbbb52efe581d564c39bd48e1143af99058e..911b71b26b0e6670bfac1a7f8d450aea510f7333 100644 (file)
@@ -806,6 +806,9 @@ static int sctp_send_asconf_del_ip(struct sock              *sk,
                        goto skip_mkasconf;
                }
 
+               if (laddr == NULL)
+                       return -EINVAL;
+
                /* We do not need RCU protection throughout this loop
                 * because this is done under a socket lock from the
                 * setsockopt call.