CC: [email protected]
BCC: [email protected]
CC: Linux Memory Management List <[email protected]>
TO: Haijun Liu <[email protected]>
CC: Chandrashekar Devegowda <[email protected]>
CC: Ricardo Martinez <[email protected]>
CC: Loic Poulain <[email protected]>
CC: "Ilpo Järvinen" <[email protected]>
CC: Sergey Ryazanov <[email protected]>

From: kernel test robot <[email protected]>

drivers/net/wwan/t7xx/t7xx_hif_cldma.c:94:34-44: ERROR: function 
t7xx_cldma_alloc_and_map_skb called on line 796 inside lock on line 779 but 
uses GFP_KERNEL

 Find functions that refer to GFP_KERNEL but are called with locks held.

Semantic patch information:
 The proposed change of converting the GFP_KERNEL is not necessarily the
 correct one.  It may be desired to unlock the lock, or to not call the
 function under the lock in the first place.

Generated by: scripts/coccinelle/locks/call_kern.cocci

CC: Haijun Liu <[email protected]>
Reported-by: kernel test robot <[email protected]>
Signed-off-by: kernel test robot <[email protected]>
---

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git 
master
head:   187b9ac8c348383f7f36c8413d73ad89e9b1e90a
commit: 13e920d93e37fcaef4a9309515798a3cae9dcf19 [9623/11360] net: wwan: t7xx: 
Add core components
:::::: branch date: 13 hours ago
:::::: commit date: 4 days ago

Please take the patch only if it's a positive warning. Thanks!

 drivers/net/wwan/t7xx/t7xx_hif_cldma.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/net/wwan/t7xx/t7xx_hif_cldma.c
+++ b/drivers/net/wwan/t7xx/t7xx_hif_cldma.c
@@ -91,7 +91,7 @@ static void t7xx_cldma_gpd_set_next_ptr(
 static int t7xx_cldma_alloc_and_map_skb(struct cldma_ctrl *md_ctrl, struct 
cldma_request *req,
                                        size_t size)
 {
-       req->skb = __dev_alloc_skb(size, GFP_KERNEL);
+       req->skb = __dev_alloc_skb(size, GFP_ATOMIC);
        if (!req->skb)
                return -ENOMEM;
 
_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to