Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 278259
b: refs/heads/master
c: 10cae1c
h: refs/heads/master
i:
  278257: 99aa64c
  278255: fb0f4cc
v: v3
  • Loading branch information
Ralf Baechle authored and David S. Miller committed Nov 29, 2011
1 parent 6475f8f commit b96311a
Show file tree
Hide file tree
Showing 2 changed files with 3 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: ac1a1de31515d950f858ba47d2bba74ff9a2614d
refs/heads/master: 10cae1c8dfbbdee55bdfcb7034f4c2c1197dc0a4
6 changes: 2 additions & 4 deletions trunk/net/netrom/nr_route.c
Original file line number Diff line number Diff line change
Expand Up @@ -670,12 +670,10 @@ int nr_rt_ioctl(unsigned int cmd, void __user *arg)
case SIOCADDRT:
if (copy_from_user(&nr_route, arg, sizeof(struct nr_route_struct)))
return -EFAULT;
if ((dev = nr_ax25_dev_get(nr_route.device)) == NULL)
if (nr_route.ndigis > AX25_MAX_DIGIS)
return -EINVAL;
if (nr_route.ndigis < 0 || nr_route.ndigis > AX25_MAX_DIGIS) {
dev_put(dev);
if ((dev = nr_ax25_dev_get(nr_route.device)) == NULL)
return -EINVAL;
}
switch (nr_route.type) {
case NETROM_NODE:
if (strnlen(nr_route.mnemonic, 7) == 7) {
Expand Down

0 comments on commit b96311a

Please sign in to comment.