]> git.proxmox.com Git - mirror_ubuntu-focal-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)
commit47e28f41dce90ea4317d35cf23f232c1a6b07adf
tree8ddc9b6044c994c5c68f1fc348e9b301fd8ccd6e
parenta7fce6ee8dd693fb2a9d19ddf9ee1fe380893fa1
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