diff options
author | Ingo Molnar <mingo@elte.hu> | 2011-04-01 21:14:04 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2011-04-01 21:14:04 +0200 |
commit | 5679027e74126e0dfc860869b0e7ceab1dd06318 (patch) | |
tree | 9a18b1a2f53be3bad8c9e4db01617fb51f067f64 /net/irda/irnet | |
parent | WARN_ON_SMP(): Add comment to explain ({0;}) (diff) | |
parent | rcu: create new rcu_access_index() and use in mce (diff) | |
download | linux-5679027e74126e0dfc860869b0e7ceab1dd06318.tar.xz linux-5679027e74126e0dfc860869b0e7ceab1dd06318.zip |
Merge branch 'rcu/urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-2.6-rcu into core/urgent
Diffstat (limited to 'net/irda/irnet')
-rw-r--r-- | net/irda/irnet/irnet_ppp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/irda/irnet/irnet_ppp.c b/net/irda/irnet/irnet_ppp.c index 7c567b8aa89a..2bb2beb6a373 100644 --- a/net/irda/irnet/irnet_ppp.c +++ b/net/irda/irnet/irnet_ppp.c @@ -105,6 +105,9 @@ irnet_ctrl_write(irnet_socket * ap, while(isspace(start[length - 1])) length--; + DABORT(length < 5 || length > NICKNAME_MAX_LEN + 5, + -EINVAL, CTRL_ERROR, "Invalid nickname.\n"); + /* Copy the name for later reuse */ memcpy(ap->rname, start + 5, length - 5); ap->rname[length - 5] = '\0'; |