diff options
author | Yan Burman <burman.yan@gmail.com> | 2006-12-02 13:33:40 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2006-12-05 19:31:32 -0500 |
commit | b0471bb7b779f5deea109e5bfdfe8c18d4a06241 (patch) | |
tree | d2fffb2916469c84b20a3e8e747cbf77d1a00e70 /drivers/net/wireless/hostap/hostap_info.c | |
parent | 9cdac9657fda58ae39c2bbc8be396f5530ed8398 (diff) | |
download | kernel_samsung_smdk4412-b0471bb7b779f5deea109e5bfdfe8c18d4a06241.zip kernel_samsung_smdk4412-b0471bb7b779f5deea109e5bfdfe8c18d4a06241.tar.gz kernel_samsung_smdk4412-b0471bb7b779f5deea109e5bfdfe8c18d4a06241.tar.bz2 |
[PATCH] hostap: replace kmalloc+memset with kzalloc
Replace kmalloc+memset with kzalloc
Signed-off-by: Yan Burman <burman.yan@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/hostap/hostap_info.c')
-rw-r--r-- | drivers/net/wireless/hostap/hostap_info.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/hostap/hostap_info.c b/drivers/net/wireless/hostap/hostap_info.c index 50f72d8..00ed638 100644 --- a/drivers/net/wireless/hostap/hostap_info.c +++ b/drivers/net/wireless/hostap/hostap_info.c @@ -327,11 +327,10 @@ static void prism2_info_hostscanresults(local_info_t *local, ptr = (u8 *) pos; new_count = left / result_size; - results = kmalloc(new_count * sizeof(struct hfa384x_hostscan_result), + results = kcalloc(new_count, sizeof(struct hfa384x_hostscan_result), GFP_ATOMIC); if (results == NULL) return; - memset(results, 0, new_count * sizeof(struct hfa384x_hostscan_result)); for (i = 0; i < new_count; i++) { memcpy(&results[i], ptr, copy_len); |