|
@@ -2067,7 +2067,7 @@ send_simple_event(islpci_private *priv, const char *str)
|
|
memptr = kmalloc(IW_CUSTOM_MAX, GFP_KERNEL);
|
|
memptr = kmalloc(IW_CUSTOM_MAX, GFP_KERNEL);
|
|
if (!memptr)
|
|
if (!memptr)
|
|
return;
|
|
return;
|
|
- BUG_ON(n > IW_CUSTOM_MAX);
|
|
|
|
|
|
+ BUG_ON(n >= IW_CUSTOM_MAX);
|
|
wrqu.data.pointer = memptr;
|
|
wrqu.data.pointer = memptr;
|
|
wrqu.data.length = n;
|
|
wrqu.data.length = n;
|
|
strcpy(memptr, str);
|
|
strcpy(memptr, str);
|