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
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Reference in a new issue