Skip to content

Commit

Permalink
[PATCH] ipw2200: Fix a variable referenced after kfree() bug
Browse files Browse the repository at this point in the history
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Zhu Yi authored and John W. Linville committed Jan 30, 2006
1 parent 17ed081 commit 489f445
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/ipw2200.c
Original file line number Diff line number Diff line change
Expand Up @@ -11124,8 +11124,8 @@ static void ipw_pci_remove(struct pci_dev *pdev)
/* Free MAC hash list for ADHOC */
for (i = 0; i < IPW_IBSS_MAC_HASH_SIZE; i++) {
list_for_each_safe(p, q, &priv->ibss_mac_hash[i]) {
kfree(list_entry(p, struct ipw_ibss_seq, list));
list_del(p);
kfree(list_entry(p, struct ipw_ibss_seq, list));
}
}

Expand Down

0 comments on commit 489f445

Please sign in to comment.