projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4cc02c7
)
ath11k: use GFP_ATOMIC under spin lock
author
Wei Yongjun
<weiyongjun1@huawei.com>
Mon, 27 Apr 2020 09:24:17 +0000
(09:24 +0000)
committer
Kalle Valo
<kvalo@codeaurora.org>
Tue, 28 Apr 2020 09:13:18 +0000
(12:13 +0300)
A spin lock is taken here so we should use GFP_ATOMIC.
Fixes: d5c65159f289 ("ath11k: driver for Qualcomm IEEE 802.11ax devices")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link:
https://lore.kernel.org/r/20200427092417.56236-1-weiyongjun1@huawei.com
drivers/net/wireless/ath/ath11k/dp_rx.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ath/ath11k/dp_rx.c
b/drivers/net/wireless/ath/ath11k/dp_rx.c
index d3d2a335cc403c808409af121793ec3656571eae..47ad3bd9e1c668a9f3b10db654ac1197157c87c4 100644
(file)
--- a/
drivers/net/wireless/ath/ath11k/dp_rx.c
+++ b/
drivers/net/wireless/ath/ath11k/dp_rx.c
@@
-896,7
+896,7
@@
int ath11k_peer_rx_tid_setup(struct ath11k *ar, const u8 *peer_mac, int vdev_id,
else
hw_desc_sz = ath11k_hal_reo_qdesc_size(DP_BA_WIN_SZ_MAX, tid);
- vaddr = kzalloc(hw_desc_sz + HAL_LINK_DESC_ALIGN - 1, GFP_
KERNEL
);
+ vaddr = kzalloc(hw_desc_sz + HAL_LINK_DESC_ALIGN - 1, GFP_
ATOMIC
);
if (!vaddr) {
spin_unlock_bh(&ab->base_lock);
return -ENOMEM;