mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
[PATCH] ipw2200: Fix a variable referenced after kfree() bug
Signed-off-by: Zhu Yi <[email protected]> Signed-off-by: John W. Linville <[email protected]>
This commit is contained in:
parent
17ed081dee
commit
489f4458cd
1 changed files with 1 additions and 1 deletions
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue