Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 184120
b: refs/heads/master
c: b18e7a0
h: refs/heads/master
v: v3
  • Loading branch information
andrew hendry authored and David S. Miller committed Feb 16, 2010
1 parent ec3759f commit 0066e02
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cf588477a3fbf085426e5c0b6205984ebb7e2187
refs/heads/master: b18e7a06857833d2c7c8c8457e5a3a7c3327f643
13 changes: 9 additions & 4 deletions trunk/net/x25/af_x25.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 0066e02

Please sign in to comment.