]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb82c54e6c8f531767242d6a858f2711002159d43
treec74e43daa2833b6e9e2b0ddbda5b2e02bb609257
parent9a3bd680a7bebc6ff2e634d16e85bc727052c3e0
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