]> git.baikalelectronics.ru Git - kernel.git/commit
ath10k: fix kernel panic while shutting down AP
authorRajkumar Manoharan <rmanohar@qti.qualcomm.com>
Fri, 10 Oct 2014 12:08:27 +0000 (17:38 +0530)
committerKalle Valo <kvalo@qca.qualcomm.com>
Sun, 12 Oct 2014 17:43:05 +0000 (20:43 +0300)
commitf95a7b1ef9bd9e3ac6f47e1243cc9828f1e2305d
tree3cf1348c349ff1c6c3769574152b082f0544ba14
parent13d3f8fa29bbabd7276b4f509d32efbc61cb5b9a
ath10k: fix kernel panic while shutting down AP

Based on GFP flag given to DMA coherent allocation, the behaviour of
dma_free_coherent is changed. This behavioural diffrence is noticeable
in ARM platform. If DMA memory is allocated with GFP_KERNEL, free
coherent can not be called inside spin lock. This is causing kernel
crash in ARM platforms. Fix this by changing GFP flag to atomic.

This is most likely a regression from commit f77d0a3ff131 ("ath10k: workaround
fw beaconing bug").

Cc: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Rajkumar Manoharan <rmanohar@qti.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/mac.c