Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 90809
b: refs/heads/master
c: 245cbe7
h: refs/heads/master
i:
  90807: 913061e
v: v3
  • Loading branch information
Johannes Berg authored and John W. Linville committed Apr 16, 2008
1 parent f096883 commit 641a5e9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 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: b16bd15c379410f2aa47837aa4a0de5712856ad5
refs/heads/master: 245cbe7a65f3e17999de276ea1c84538f3a7451e
9 changes: 6 additions & 3 deletions trunk/net/mac80211/key.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,12 @@ static void add_todo(struct ieee80211_key *key, u32 flag)

spin_lock(&todo_lock);
key->flags |= flag;
/* only add if not already added */
if (list_empty(&key->todo))
list_add(&key->todo, &todo_list);
/*
* Remove again if already on the list so that we move it to the end.
*/
if (!list_empty(&key->todo))
list_del(&key->todo);
list_add_tail(&key->todo, &todo_list);
schedule_work(&todo_work);
spin_unlock(&todo_lock);
}
Expand Down

0 comments on commit 641a5e9

Please sign in to comment.