]> git.baikalelectronics.ru Git - kernel.git/commit
ath11k: fix some sleeping in atomic bugs
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 28 Sep 2021 09:05:43 +0000 (12:05 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 28 Sep 2021 10:55:51 +0000 (13:55 +0300)
commitc9980066be975a8c39e819c45b43e1ad58fdab14
tree2f1d4d47a7c0bb0be55cc0640e792f2808dea361
parenta3c5dce4c96f6c259f9cd8414f5aae3cf8e7eb16
ath11k: fix some sleeping in atomic bugs

The ath11k_dbring_bufs_replenish() and ath11k_dbring_fill_bufs()
take a "gfp" parameter but they since they take spinlocks, the
allocations they do have to be atomic.  This causes a bug because
ath11k_dbring_buf_setup passes GFP_KERNEL for the gfp flags.

The fix is to use GFP_ATOMIC and remove the unused parameters.

Fixes: ef4e8a978b75 ("ath11k: Add direct buffer ring support")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210812070434.GE31863@kili
drivers/net/wireless/ath/ath11k/dbring.c