Patch "kunit: skb: use "gfp" variable instead of hardcoding GFP_KERNEL" has been added to the 6.12-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    kunit: skb: use "gfp" variable instead of hardcoding GFP_KERNEL

to the 6.12-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     kunit-skb-use-gfp-variable-instead-of-hardcoding-gfp.patch
and it can be found in the queue-6.12 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit cef70896928ab2231c7f1c56d30d3de75e060bac
Author: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
Date:   Mon Nov 4 20:16:30 2024 +0300

    kunit: skb: use "gfp" variable instead of hardcoding GFP_KERNEL
    
    [ Upstream commit fd0a5afb5455b4561bfc6dfb0c4b2d8226f9ccfe ]
    
    The intent here was clearly to use the gfp variable flags instead of
    hardcoding GFP_KERNEL.  All the callers pass GFP_KERNEL as the gfp
    flags so this doesn't affect runtime.
    
    Fixes: b3231d353a51 ("kunit: add a convenience allocation wrapper for SKBs")
    Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
    Reviewed-by: David Gow <davidgow@xxxxxxxxxx>
    Reviewed-by: Kuan-Wei Chiu <visitorckw@xxxxxxxxx>
    Signed-off-by: Shuah Khan <skhan@xxxxxxxxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/include/kunit/skbuff.h b/include/kunit/skbuff.h
index 44d12370939a9..345e1e8f03123 100644
--- a/include/kunit/skbuff.h
+++ b/include/kunit/skbuff.h
@@ -29,7 +29,7 @@ static void kunit_action_kfree_skb(void *p)
 static inline struct sk_buff *kunit_zalloc_skb(struct kunit *test, int len,
 					       gfp_t gfp)
 {
-	struct sk_buff *res = alloc_skb(len, GFP_KERNEL);
+	struct sk_buff *res = alloc_skb(len, gfp);
 
 	if (!res || skb_pad(res, len))
 		return NULL;




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux