Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 170895
b: refs/heads/master
c: 091bb8a
h: refs/heads/master
i:
  170893: fdbfca3
  170891: d62bdf8
  170887: 71d2dd0
  170879: 94c239b
v: v3
  • Loading branch information
roel kluin authored and David S. Miller committed Oct 29, 2009
1 parent 965713a commit 81018a5
Show file tree
Hide file tree
Showing 3 changed files with 3 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: 50e4fe91a5edbf680853b2ca37300a47ff860d63
refs/heads/master: 091bb8ab51c668635d1a75359019005921676881
2 changes: 1 addition & 1 deletion trunk/net/x25/x25_in.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ static int x25_state1_machine(struct sock *sk, struct sk_buff *skb, int frametyp
/*
* Copy any Call User Data.
*/
if (skb->len >= 0) {
if (skb->len > 0) {
skb_copy_from_linear_data(skb,
x25->calluserdata.cuddata,
skb->len);
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/x25/x25_route.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ int x25_route_ioctl(unsigned int cmd, void __user *arg)
goto out;

rc = -EINVAL;
if (rt.sigdigits < 0 || rt.sigdigits > 15)
if (rt.sigdigits > 15)
goto out;

dev = x25_dev_get(rt.device);
Expand Down

0 comments on commit 81018a5

Please sign in to comment.