diff options
Diffstat (limited to 'drivers/net/wireless/wl12xx/wl1271_scan.c')
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1271_scan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_scan.c b/drivers/net/wireless/wl12xx/wl1271_scan.c index fec43eed8c55..30dc1000f563 100644 --- a/drivers/net/wireless/wl12xx/wl1271_scan.c +++ b/drivers/net/wireless/wl12xx/wl1271_scan.c | |||
@@ -248,7 +248,7 @@ int wl1271_scan(struct wl1271 *wl, const u8 *ssid, size_t ssid_len, | |||
248 | 248 | ||
249 | wl->scan.req = req; | 249 | wl->scan.req = req; |
250 | 250 | ||
251 | wl->scan.scanned_ch = kzalloc(req->n_channels * | 251 | wl->scan.scanned_ch = kcalloc(req->n_channels, |
252 | sizeof(*wl->scan.scanned_ch), | 252 | sizeof(*wl->scan.scanned_ch), |
253 | GFP_KERNEL); | 253 | GFP_KERNEL); |
254 | wl1271_scan_stm(wl); | 254 | wl1271_scan_stm(wl); |