mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
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: b3231d353a
("kunit: add a convenience allocation wrapper for SKBs")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: David Gow <davidgow@google.com>
Reviewed-by: Kuan-Wei Chiu <visitorckw@gmail.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
This commit is contained in:
parent
2d5404caa8
commit
fd0a5afb54
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
static inline struct sk_buff *kunit_zalloc_skb(struct kunit *test, int len,
|
||||||
gfp_t gfp)
|
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))
|
if (!res || skb_pad(res, len))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Add table
Reference in a new issue