Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 278258
b: refs/heads/master
c: ac1a1de
h: refs/heads/master
v: v3
  • Loading branch information
Ralf Baechle authored and David S. Miller committed Nov 29, 2011
1 parent 99aa64c commit 6475f8f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: be639ac6901a082894771f55c8047d5772de5c27
refs/heads/master: ac1a1de31515d950f858ba47d2bba74ff9a2614d
5 changes: 5 additions & 0 deletions trunk/net/netrom/nr_route.c
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,11 @@ int nr_rt_ioctl(unsigned int cmd, void __user *arg)
}
switch (nr_route.type) {
case NETROM_NODE:
if (strnlen(nr_route.mnemonic, 7) == 7) {
ret = -EINVAL;
break;
}

ret = nr_add_node(&nr_route.callsign,
nr_route.mnemonic,
&nr_route.neighbour,
Expand Down

0 comments on commit 6475f8f

Please sign in to comment.