OSDN Git Service

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)
commit9ee152ee3ee3568b1a3302f2bb816d5440e6f5f1
treec50b8ca27594e5289205c0b0b0ea6b6bbe151e58
parentdc2df00af951569689ec39ce0a41b1dff7e3595e
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: 39d439047f1d ("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