Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 33a5d083 authored by Roel Kluin's avatar Roel Kluin Committed by John W. Linville
Browse files

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



The wrong pointer was tested.

Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Acked-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 6c8afef5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;