Skip to content

Commit

Permalink
iwmc3200wifi: Test of wrong pointer after kzalloc in iwm_mlme_update_…
Browse files Browse the repository at this point in the history
…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>
  • Loading branch information
Roel Kluin authored and John W. Linville committed Feb 9, 2010
1 parent 6c8afef commit 33a5d08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/iwmc3200wifi/rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 33a5d08

Please sign in to comment.