]> git.baikalelectronics.ru Git - kernel.git/commit
net: wwan: t7xx: use GFP_ATOMIC under spin lock in t7xx_cldma_gpd_set_next_ptr()
authorYang Yingliang <yangyingliang@huawei.com>
Thu, 19 May 2022 03:21:08 +0000 (11:21 +0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 21 May 2022 00:19:19 +0000 (17:19 -0700)
commita4642a3ea9a4292f9c85aba08196ff32685678b6
treec50b8ca27594e5289205c0b0b0ea6b6bbe151e58
parent2cc23f571fa3b5712b8b38847848ef4cbbc2275d
net: wwan: t7xx: use GFP_ATOMIC under spin lock in t7xx_cldma_gpd_set_next_ptr()

Sometimes t7xx_cldma_gpd_set_next_ptr() is called under spin lock,
so add 'gfp_mask' parameter in t7xx_cldma_gpd_set_next_ptr() to pass
the flag.

Fixes: 125adc641dc3 ("net: wwan: t7xx: Add control DMA interface")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Reviewed-by: Loic Poulain <loic.poulain@linaro.org>
Link: https://lore.kernel.org/r/20220519032108.2996400-1-yangyingliang@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/wwan/t7xx/t7xx_hif_cldma.c