Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 266121
b: refs/heads/master
c: 245f3d3
h: refs/heads/master
i:
  266119: d4f5d2e
v: v3
  • Loading branch information
Ying Xue authored and Paul Gortmaker committed Sep 18, 2011
1 parent 4bc4a59 commit b91d91d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 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: 1d835874af143a5c8273268d09e2f259b4c1ba89
refs/heads/master: 245f3d342dccad293d0cd0bbe231051b2daa695f
12 changes: 3 additions & 9 deletions trunk/net/tipc/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -1483,9 +1483,7 @@ static int listen(struct socket *sock, int len)

lock_sock(sk);

if (sock->state == SS_READY)
res = -EOPNOTSUPP;
else if (sock->state != SS_UNCONNECTED)
if (sock->state != SS_UNCONNECTED)
res = -EINVAL;
else {
sock->state = SS_LISTENING;
Expand Down Expand Up @@ -1513,10 +1511,6 @@ static int accept(struct socket *sock, struct socket *new_sock, int flags)

lock_sock(sk);

if (sock->state == SS_READY) {
res = -EOPNOTSUPP;
goto exit;
}
if (sock->state != SS_LISTENING) {
res = -EINVAL;
goto exit;
Expand Down Expand Up @@ -1793,11 +1787,11 @@ static const struct proto_ops msg_ops = {
.bind = bind,
.connect = connect,
.socketpair = sock_no_socketpair,
.accept = accept,
.accept = sock_no_accept,
.getname = get_name,
.poll = poll,
.ioctl = sock_no_ioctl,
.listen = listen,
.listen = sock_no_listen,
.shutdown = shutdown,
.setsockopt = setsockopt,
.getsockopt = getsockopt,
Expand Down

0 comments on commit b91d91d

Please sign in to comment.