projects
/
platform
/
kernel
/
linux-3.10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72e93e9
)
prism54: call BUG_ON() earlier
author
Dan Carpenter
<error27@gmail.com>
Sat, 10 Jul 2010 08:53:38 +0000
(10:53 +0200)
committer
John W. Linville
<linville@tuxdriver.com>
Mon, 12 Jul 2010 20:05:32 +0000
(16:05 -0400)
This test is off by one because strlen() doesn't include the NULL
terminator.
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/prism54/isl_ioctl.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/prism54/isl_ioctl.c
b/drivers/net/wireless/prism54/isl_ioctl.c
index
236e375
..
2e656bb
100644
(file)
--- a/
drivers/net/wireless/prism54/isl_ioctl.c
+++ b/
drivers/net/wireless/prism54/isl_ioctl.c
@@
-2067,7
+2067,7
@@
send_simple_event(islpci_private *priv, const char *str)
memptr = kmalloc(IW_CUSTOM_MAX, GFP_KERNEL);
if (!memptr)
return;
- BUG_ON(n > IW_CUSTOM_MAX);
+ BUG_ON(n >
=
IW_CUSTOM_MAX);
wrqu.data.pointer = memptr;
wrqu.data.length = n;
strcpy(memptr, str);