Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 90044
b: refs/heads/master
c: e247a8f
h: refs/heads/master
v: v3
  • Loading branch information
Allan Stephens authored and David S. Miller committed Mar 6, 2008
1 parent f2e5751 commit 7eab93d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: 8c8696553aa3895c2ad4289537e4af45a8877b62
refs/heads/master: e247a8f5d018740220c66bd5df1928d21d277d63
5 changes: 3 additions & 2 deletions trunk/net/tipc/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -1419,7 +1419,7 @@ static int accept(struct socket *sock, struct socket *newsock, int flags)
/**
* shutdown - shutdown socket connection
* @sock: socket structure
* @how: direction to close (unused; always treated as read + write)
* @how: direction to close (must be SHUT_RDWR)
*
* Terminates connection (if necessary), then purges socket's receive queue.
*
Expand All @@ -1432,7 +1432,8 @@ static int shutdown(struct socket *sock, int how)
struct sk_buff *buf;
int res;

/* Could return -EINVAL for an invalid "how", but why bother? */
if (how != SHUT_RDWR)
return -EINVAL;

if (mutex_lock_interruptible(&tsock->lock))
return -ERESTARTSYS;
Expand Down

0 comments on commit 7eab93d

Please sign in to comment.