net: sctp: fix smatch warning in sctp_send_asconf_del_ip
[pandora-kernel.git] / net / sctp / socket.c
index ba0108f..c53d01e 100644 (file)
@@ -814,6 +814,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.