Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 186826
b: refs/heads/master
c: 7bd795b
h: refs/heads/master
v: v3
  • Loading branch information
Florian Schilhabel authored and Greg Kroah-Hartman committed Mar 4, 2010
1 parent 467ad6c commit d7d5c16
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a99840b1aa66d3797bfe0be4fb6982bba62d815b
refs/heads/master: 7bd795bfcd7eb2f2962d458bf787d5ee0d1167cd
1 change: 0 additions & 1 deletion trunk/drivers/staging/rtl8192su/TODO
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ TODO:
- cleanup ieee80211.h
- move rtl8192su's specific code out from ieee80211.h
- abstract rtl819su's specific code
- use list_for_each_safe() in ieee80211_crypto_deinit
- switch to use shared "librtl" instead of private ieee80211 stack
- switch to use LIB80211
- switch to use MAC80211
Expand Down
19 changes: 10 additions & 9 deletions trunk/drivers/staging/rtl8192su/ieee80211/ieee80211_crypt.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,19 +226,20 @@ int __init ieee80211_crypto_init(void)
void __exit ieee80211_crypto_deinit(void)
{
struct list_head *ptr, *n;
struct ieee80211_crypto_alg *alg = NULL;

if (hcrypt == NULL)
return;

for (ptr = hcrypt->algs.next, n = ptr->next; ptr != &hcrypt->algs;
ptr = n, n = ptr->next) {
struct ieee80211_crypto_alg *alg =
(struct ieee80211_crypto_alg *) ptr;
list_del(ptr);
printk(KERN_DEBUG "ieee80211_crypt: unregistered algorithm "
"'%s' (deinit)\n", alg->ops->name);
kfree(alg);
list_for_each_safe(ptr, n, &hcrypt->algs) {
alg = list_entry(ptr, struct ieee80211_crypto_alg, list);
if (alg) {
list_del(ptr);
printk(KERN_DEBUG
"ieee80211_crypt: unregistered algorithm '%s' (deinit)\n",
alg->ops->name);
kfree(alg);
}
}

kfree(hcrypt);
}

0 comments on commit d7d5c16

Please sign in to comment.