mirror of
https://github.com/torvalds/linux.git
synced 2024-11-14 16:12:02 +00:00
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:
parent
6c8afef551
commit
33a5d083e7
@ -794,7 +794,7 @@ static int iwm_mlme_update_bss_table(struct iwm_priv *iwm, u8 *buf,
|
||||
}
|
||||
|
||||
bss->bss = kzalloc(bss_len, GFP_KERNEL);
|
||||
if (!bss) {
|
||||
if (!bss->bss) {
|
||||
kfree(bss);
|
||||
IWM_ERR(iwm, "Couldn't allocate bss\n");
|
||||
return -ENOMEM;
|
||||
|
Loading…
Reference in New Issue
Block a user