]> 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)
commit1c06b385eb9acf01b2ec267cc38afd248b89d817
treec50b8ca27594e5289205c0b0b0ea6b6bbe151e58
parent592744daf45e1875542f9b13674dca6b7a34acf1
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: 1cc61376694a ("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