aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8187se/r8180_core.c
diff options
context:
space:
mode:
authorleandro Costantino <lcostantino@gmail.com>2009-02-17 11:16:26 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2009-02-27 12:56:23 -0800
commit096c55d1de39c0de526dfeb8a68ba3b0200e5a93 (patch)
tree4d56827dcd1a7188c261408d2a881f58d05a52f3 /drivers/staging/rtl8187se/r8180_core.c
parentStaging: rtl8187se: fix Kconfig dependencies (diff)
downloadlinux-dev-096c55d1de39c0de526dfeb8a68ba3b0200e5a93.tar.xz
linux-dev-096c55d1de39c0de526dfeb8a68ba3b0200e5a93.zip
Staging: rtl8187se: Fix oops and memory poison caused by builtin ieee80211.
when modprobe and removing rtl8187se ( just for testing, i do not have that card , and oops and a memory poison error happens on the builtin ieee80211 of that driver. I dont know if they will port it to the current ieeee80221 instead of the builtin ones, but just in case i attach a proposed fix for that problem. - Change for loop on ieee80211_crypto_deinit for list_for_each_safe to remove items. Is there an spinlock needed here? - Call ieee80211_crypto_deinit after exiting all registerd crypto protocols. Signed-off-by: Costantino Leandro <lcostantino@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to '')
-rw-r--r--drivers/staging/rtl8187se/r8180_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8187se/r8180_core.c b/drivers/staging/rtl8187se/r8180_core.c
index 94534955e38b..66de5cc8ddf1 100644
--- a/drivers/staging/rtl8187se/r8180_core.c
+++ b/drivers/staging/rtl8187se/r8180_core.c
@@ -6161,10 +6161,10 @@ static void __exit rtl8180_pci_module_exit(void)
{
pci_unregister_driver (&rtl8180_pci_driver);
rtl8180_proc_module_remove();
- ieee80211_crypto_deinit();
ieee80211_crypto_tkip_exit();
ieee80211_crypto_ccmp_exit();
ieee80211_crypto_wep_exit();
+ ieee80211_crypto_deinit();
DMESG("Exiting");
}