diff options
author | David S. Miller <davem@davemloft.net> | 2012-03-18 23:29:41 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-03-18 23:29:41 -0400 |
commit | 4da0bd736552e6377b407b3c3d3ae518ebbdd269 (patch) | |
tree | f0da9f843b8033565c3ca4103fccb17a60688326 /drivers/net/wireless/iwlegacy | |
parent | 81a430ac1b88b0702c57d2513e247317e810e04d (diff) | |
parent | c16fa4f2ad19908a47c63d8fa436a1178438c7e7 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Diffstat (limited to 'drivers/net/wireless/iwlegacy')
-rw-r--r-- | drivers/net/wireless/iwlegacy/3945-mac.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/iwlegacy/3945.c | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/drivers/net/wireless/iwlegacy/3945-mac.c b/drivers/net/wireless/iwlegacy/3945-mac.c index 0ccc934a35bb..0c1209390169 100644 --- a/drivers/net/wireless/iwlegacy/3945-mac.c +++ b/drivers/net/wireless/iwlegacy/3945-mac.c | |||
@@ -2466,7 +2466,7 @@ il3945_bg_alive_start(struct work_struct *data) | |||
2466 | container_of(data, struct il_priv, alive_start.work); | 2466 | container_of(data, struct il_priv, alive_start.work); |
2467 | 2467 | ||
2468 | mutex_lock(&il->mutex); | 2468 | mutex_lock(&il->mutex); |
2469 | if (test_bit(S_EXIT_PENDING, &il->status)) | 2469 | if (test_bit(S_EXIT_PENDING, &il->status) || il->txq == NULL) |
2470 | goto out; | 2470 | goto out; |
2471 | 2471 | ||
2472 | il3945_alive_start(il); | 2472 | il3945_alive_start(il); |
diff --git a/drivers/net/wireless/iwlegacy/3945.c b/drivers/net/wireless/iwlegacy/3945.c index 456f32da6b26..c5b1d199e0bc 100644 --- a/drivers/net/wireless/iwlegacy/3945.c +++ b/drivers/net/wireless/iwlegacy/3945.c | |||
@@ -1855,11 +1855,12 @@ il3945_bg_reg_txpower_periodic(struct work_struct *work) | |||
1855 | struct il_priv *il = container_of(work, struct il_priv, | 1855 | struct il_priv *il = container_of(work, struct il_priv, |
1856 | _3945.thermal_periodic.work); | 1856 | _3945.thermal_periodic.work); |
1857 | 1857 | ||
1858 | if (test_bit(S_EXIT_PENDING, &il->status)) | ||
1859 | return; | ||
1860 | |||
1861 | mutex_lock(&il->mutex); | 1858 | mutex_lock(&il->mutex); |
1859 | if (test_bit(S_EXIT_PENDING, &il->status) || il->txq == NULL) | ||
1860 | goto out; | ||
1861 | |||
1862 | il3945_reg_txpower_periodic(il); | 1862 | il3945_reg_txpower_periodic(il); |
1863 | out: | ||
1863 | mutex_unlock(&il->mutex); | 1864 | mutex_unlock(&il->mutex); |
1864 | } | 1865 | } |
1865 | 1866 | ||