Skip to content

Commit

Permalink
nl80211: rework locking
Browse files Browse the repository at this point in the history
When I added scanning to cfg80211, we got a lock dependency like this:
	rtnl --> cfg80211_mtx

nl80211, on the other hand, has the reverse lock dependency:
	cfg80211_mtx --> rtnl

which clearly is a bad idea. This patch reworks nl80211 to take these
two locks in the other order to fix the possible, and easily
triggerable, deadlock.

Signed-off-by: Johannes Berg <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
  • Loading branch information
jmberg authored and linvjw committed Mar 28, 2009
1 parent 8f655dd commit 3b85875
Showing 1 changed file with 166 additions and 105 deletions.
Loading

0 comments on commit 3b85875

Please sign in to comment.