Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 30408
b: refs/heads/master
c: 4997865
h: refs/heads/master
v: v3
  • Loading branch information
Allan Stephens authored and David S. Miller committed Jun 26, 2006
1 parent 689db44 commit 006941f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 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: 1303e8f173a8a5000ee6e2fba876fec9474ed1f6
refs/heads/master: 499786516fc12791223f075d682a45ea1129eb04
9 changes: 3 additions & 6 deletions trunk/net/tipc/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,6 @@ static int tipc_create(struct socket *sock, int protocol)
struct sock *sk;
u32 ref;

if ((sock->type != SOCK_STREAM) &&
(sock->type != SOCK_SEQPACKET) &&
(sock->type != SOCK_DGRAM) &&
(sock->type != SOCK_RDM))
return -EPROTOTYPE;

if (unlikely(protocol != 0))
return -EPROTONOSUPPORT;

Expand All @@ -199,6 +193,9 @@ static int tipc_create(struct socket *sock, int protocol)
sock->ops = &msg_ops;
sock->state = SS_READY;
break;
default:
tipc_deleteport(ref);
return -EPROTOTYPE;
}

sk = sk_alloc(AF_TIPC, GFP_KERNEL, &tipc_proto, 1);
Expand Down

0 comments on commit 006941f

Please sign in to comment.