From: Hannes Frederic Sowa <han...@stressinduktion.org>
Date: Mon, 14 Dec 2015 17:17:49 +0100

> diff --git a/net/socket.c b/net/socket.c
> index 456fadb..d2f3d49 100644
> --- a/net/socket.c
> +++ b/net/socket.c
> @@ -1098,6 +1098,9 @@ int __sock_create(struct net *net, int family, int 
> type, int protocol,
>               return -EAFNOSUPPORT;
>       if (type < 0 || type >= SOCK_MAX)
>               return -EINVAL;
> +     /* upper bound should be tested by per-protocol .create callbacks */
> +     if (protocol < 0)
> +             return -EINVAL;
>  

Please get rid of this part of your patch and resubmit, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to