Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 361807
b: refs/heads/master
c: 896ee0e
h: refs/heads/master
i:
  361805: 10fd94e
  361803: ef07817
  361799: 5a04881
  361791: 4441a32
v: v3
  • Loading branch information
Kees Cook authored and David S. Miller committed Mar 20, 2013
1 parent 49eb70f commit aace16e
Show file tree
Hide file tree
Showing 2 changed files with 5 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: fa90b077d72b4ea92706e86fdff7b5dca294caa3
refs/heads/master: 896ee0eee6261e30c3623be931c3f621428947df
6 changes: 4 additions & 2 deletions trunk/net/irda/af_irda.c
Original file line number Diff line number Diff line change
Expand Up @@ -2583,8 +2583,10 @@ static int irda_getsockopt(struct socket *sock, int level, int optname,
NULL, NULL, NULL);

/* Check if the we got some results */
if (!self->cachedaddr)
return -EAGAIN; /* Didn't find any devices */
if (!self->cachedaddr) {
err = -EAGAIN; /* Didn't find any devices */
goto out;
}
daddr = self->cachedaddr;
/* Cleanup */
self->cachedaddr = 0;
Expand Down

0 comments on commit aace16e

Please sign in to comment.