From: Haiqing Bai <haiqing....@windriver.com> Date: Tue, 23 Apr 2019 17:00:23 +0800
> diff --git a/net/socket.c b/net/socket.c > index 8255f5bda0aa..7927c2bcad65 100644 > --- a/net/socket.c > +++ b/net/socket.c > @@ -1339,6 +1339,11 @@ int __sock_create(struct net *net, int family, int > type, int protocol, > if (type < 0 || type >= SOCK_MAX) > return -EINVAL; > > +#if !(IS_ENABLED(CONFIG_IPV6)) > + if (family == AF_INET6) > + return -EAFNOSUPPORT; > +#endif There is no way I am allowing this kind of layering violation. It's just rediculous.