Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 320395
b: refs/heads/master
c: d9c2ede
h: refs/heads/master
i:
  320393: e570b2e
  320391: e59c0ba
v: v3
  • Loading branch information
Eldad Zack authored and J. Bruce Fields committed Jul 11, 2012
1 parent 496e82f commit a905562
Show file tree
Hide file tree
Showing 2 changed files with 11 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: 7f2e7dc0fdd9f124da43d1bd12adcebf92bedf16
refs/heads/master: d9c2ede63c74048dfddbb129c59ac01176b0ab71
14 changes: 10 additions & 4 deletions trunk/include/linux/sunrpc/cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -219,11 +219,17 @@ static inline int get_int(char **bpp, int *anint)
char buf[50];
char *ep;
int rv;
int len = qword_get(bpp, buf, 50);
if (len < 0) return -EINVAL;
if (len ==0) return -ENOENT;
int len = qword_get(bpp, buf, sizeof(buf));

if (len < 0)
return -EINVAL;
if (len == 0)
return -ENOENT;

rv = simple_strtol(buf, &ep, 0);
if (*ep) return -EINVAL;
if (*ep)
return -EINVAL;

*anint = rv;
return 0;
}
Expand Down

0 comments on commit a905562

Please sign in to comment.