Loading net/x25/af_x25.c +9 −4 Original line number Diff line number Diff line Loading @@ -512,15 +512,20 @@ static int x25_create(struct net *net, struct socket *sock, int protocol, { struct sock *sk; struct x25_sock *x25; int rc = -ESOCKTNOSUPPORT; int rc = -EAFNOSUPPORT; if (!net_eq(net, &init_net)) return -EAFNOSUPPORT; goto out; rc = -ESOCKTNOSUPPORT; if (sock->type != SOCK_SEQPACKET) goto out; if (sock->type != SOCK_SEQPACKET || protocol) rc = -EINVAL; if (protocol) goto out; rc = -ENOMEM; rc = -ENOBUFS; if ((sk = x25_alloc_socket(net)) == NULL) goto out; Loading Loading
net/x25/af_x25.c +9 −4 Original line number Diff line number Diff line Loading @@ -512,15 +512,20 @@ static int x25_create(struct net *net, struct socket *sock, int protocol, { struct sock *sk; struct x25_sock *x25; int rc = -ESOCKTNOSUPPORT; int rc = -EAFNOSUPPORT; if (!net_eq(net, &init_net)) return -EAFNOSUPPORT; goto out; rc = -ESOCKTNOSUPPORT; if (sock->type != SOCK_SEQPACKET) goto out; if (sock->type != SOCK_SEQPACKET || protocol) rc = -EINVAL; if (protocol) goto out; rc = -ENOMEM; rc = -ENOBUFS; if ((sk = x25_alloc_socket(net)) == NULL) goto out; Loading