Archived
14
0
Fork 0

iwmc3200wifi: Test of wrong pointer after kzalloc in iwm_mlme_update_bss_table()

The wrong pointer was tested.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Acked-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
Roel Kluin 2010-02-09 12:07:41 +01:00 committed by John W. Linville
parent 6c8afef551
commit 33a5d083e7

View file

@ -794,7 +794,7 @@ static int iwm_mlme_update_bss_table(struct iwm_priv *iwm, u8 *buf,
} }
bss->bss = kzalloc(bss_len, GFP_KERNEL); bss->bss = kzalloc(bss_len, GFP_KERNEL);
if (!bss) { if (!bss->bss) {
kfree(bss); kfree(bss);
IWM_ERR(iwm, "Couldn't allocate bss\n"); IWM_ERR(iwm, "Couldn't allocate bss\n");
return -ENOMEM; return -ENOMEM;