Skip to content

Commit fd0a5af

Browse files
Dan Carpentershuahkh
authored andcommitted
kunit: skb: use "gfp" variable instead of hardcoding GFP_KERNEL
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: b3231d3 ("kunit: add a convenience allocation wrapper for SKBs") Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: David Gow <[email protected]> Reviewed-by: Kuan-Wei Chiu <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
1 parent 2d5404c commit fd0a5af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/kunit/skbuff.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ static void kunit_action_kfree_skb(void *p)
2929
static inline struct sk_buff *kunit_zalloc_skb(struct kunit *test, int len,
3030
gfp_t gfp)
3131
{
32-
struct sk_buff *res = alloc_skb(len, GFP_KERNEL);
32+
struct sk_buff *res = alloc_skb(len, gfp);
3333

3434
if (!res || skb_pad(res, len))
3535
return NULL;

0 commit comments

Comments
 (0)