ath9k: use GFP_ATOMIC under spinlock
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 16 Apr 2013 07:51:28 +0000 (10:51 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 22 Apr 2013 19:20:14 +0000 (15:20 -0400)
commit703a4e5521dcd6624a8740c5be597c4fc8e4b9bb
tree727c0e019543dc1ad7a2117d22c0fdad1831b883
parentca21cfde84e2cb0d64222cbb2ee2cf3163c5f068
ath9k: use GFP_ATOMIC under spinlock

This is called with spinlocks held so we have to use GFP_ATOMIC.  It's
the sc_pcu_lock in ath9k_stop() that's the issue.  The call tree looks
like this:

ath9k_stop()
ath_prepare_reset()
ath_stoprecv()
ath_flushrecv()
ath_rx_tasklet()
ath9k_dfs_process_phyerr()
pd->add_pulse() => dpd_add_pulse()
channel_detector_get()
channel_detector_create()
pri_detector_init()

channel_detector_create() uses GFP_ATOMIC as well.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Tested-by: Zefir Kurtisi <zefir.kurtisi@neratec.com>
Acked-by: Zefir Kurtisi <zefir.kurtisi@neratec.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/dfs_pri_detector.c