]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: fix locking assertions
authorJohannes Berg <johannes.berg@intel.com>
Fri, 6 Aug 2010 14:17:53 +0000 (16:17 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 6 Aug 2010 17:53:58 +0000 (13:53 -0400)
commitdc9a8a7c02e4d9665c74efae16e963a25f3e74ca
tree22bd26711179036d5c417ec5fc0c56de82fe0a07
parent0c521c8775c9cac3aef097a107bab5685c8b4f81
iwlwifi: fix locking assertions

spin_is_locked() can return zero on some (UP?)
configurations because locks don't exist, and
that causes an endless amount of warnings. Use
lockdep_assert_held() instead, which has two
advantages:
 1) it verifies the current task is holding
    the lock or mutex
 2) it compiles away completely when lockdep
    is not enabled

Cc: stable@kernel.org [2.6.34+, maybe only parts of patch]
Reported-by: Thomas Meyer <thomas@m3y3r.de>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-agn-lib.c
drivers/net/wireless/iwlwifi/iwl-agn-tx.c
drivers/net/wireless/iwlwifi/iwl-scan.c
drivers/net/wireless/iwlwifi/iwl-sta.c