]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: fix locking in iwl_mac_add_interface
authorJohannes Berg <johannes.berg@intel.com>
Wed, 20 Jan 2010 19:21:06 +0000 (11:21 -0800)
committerReinette Chatre <reinette.chatre@intel.com>
Fri, 29 Jan 2010 19:13:34 +0000 (11:13 -0800)
commitdc56e7e8da2e37aea565af8b2601a6db1a81eeb9
tree8ddc9b6044c994c5c68f1fc348e9b301fd8ccd6e
parentc6aff47b2af6ae48549b9746d314f8581cd51563
iwlwifi: fix locking in iwl_mac_add_interface

The corresponding iwl_mac_remove_interface only
acquires the mutex, leading me to believe that
the spinlock is not necessary. However, this
doesn't actually acquire the mutex around the
vif pointer check and assignment, fix that.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
drivers/net/wireless/iwlwifi/iwl-core.c