iwmc3200wifi: add a mutex to protect iwm_reset_worker
authorZhu Yi <yi.zhu@intel.com>
Mon, 15 Jun 2009 19:59:49 +0000 (21:59 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 19 Jun 2009 15:50:16 +0000 (11:50 -0400)
commit68810c5dc5f6bbaa0bbf6acce7cb56d97a1c8fd0
treec74e43daa2833b6e9e2b0ddbda5b2e02bb609257
parent4e9aa52e36a7beb4c0163324a3de759d7cf2e442
iwmc3200wifi: add a mutex to protect iwm_reset_worker

The patch adds a mutex to protect the iwm_reset_worker against netdev
ndo_open and ndo_stop because all of them call iwm_up and iwm_down in
the implementation. Note the latter two are already protected by
rtnl. So if iwm_reset_worker is not required in the future, the mutex
can also be removed.

Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: Samuel Ortiz <samuel.ortiz@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwmc3200wifi/iwm.h
drivers/net/wireless/iwmc3200wifi/main.c