]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
committerAndrea Righi <andrea.righi@canonical.com>
Tue, 4 Jan 2022 08:48:20 +0000 (09:48 +0100)
commitc9677e0363e0df72921ec9775be2c26793192509
tree36bc531d8366eff2a1c92577f8fc9c163f634ea9
parent4646fddab8846131d89d87a1ebf726d8b4889e4d
ath11k: fix some sleeping in atomic bugs

BugLink: https://bugs.launchpad.net/bugs/1951822
[ Upstream commit aadf7c81a0771b8f1c97dabca6a48bae1b387779 ]

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: bd6478559e27 ("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
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/net/wireless/ath/ath11k/dbring.c