diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/libertas/debugfs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/wireless/libertas/debugfs.c b/drivers/net/wireless/libertas/debugfs.c index cb00b080409e..0bda0b511910 100644 --- a/drivers/net/wireless/libertas/debugfs.c +++ b/drivers/net/wireless/libertas/debugfs.c | |||
@@ -3,6 +3,7 @@ | |||
3 | #include <linux/debugfs.h> | 3 | #include <linux/debugfs.h> |
4 | #include <linux/delay.h> | 4 | #include <linux/delay.h> |
5 | #include <linux/mm.h> | 5 | #include <linux/mm.h> |
6 | #include <linux/string.h> | ||
6 | #include <net/iw_handler.h> | 7 | #include <net/iw_handler.h> |
7 | 8 | ||
8 | #include "dev.h" | 9 | #include "dev.h" |
@@ -205,7 +206,7 @@ static int libertas_parse_chan(char *buf, size_t count, | |||
205 | if (!start) | 206 | if (!start) |
206 | return -EINVAL; | 207 | return -EINVAL; |
207 | start += 5; | 208 | start += 5; |
208 | end = strstr(start, " "); | 209 | end = strchr(start, ' '); |
209 | if (!end) | 210 | if (!end) |
210 | end = buf + count; | 211 | end = buf + count; |
211 | hold = kzalloc((end - start)+1, GFP_KERNEL); | 212 | hold = kzalloc((end - start)+1, GFP_KERNEL); |
@@ -256,7 +257,7 @@ static void libertas_parse_ssid(char *buf, size_t count, | |||
256 | if (!hold) | 257 | if (!hold) |
257 | return; | 258 | return; |
258 | hold += 5; | 259 | hold += 5; |
259 | end = strstr(hold, " "); | 260 | end = strchr(hold, ' '); |
260 | if (!end) | 261 | if (!end) |
261 | end = buf + count - 1; | 262 | end = buf + count - 1; |
262 | 263 | ||