Skip to content

Commit 190179f

Browse files
Cong WangAlexei Starovoitov
authored andcommitted
skmsg: Use GFP_KERNEL in sk_psock_create_ingress_msg()
This function is only called in process context. Signed-off-by: Cong Wang <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Acked-by: John Fastabend <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent 7786dfc commit 190179f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/core/skmsg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ static struct sk_msg *sk_psock_create_ingress_msg(struct sock *sk,
410410
if (!sk_rmem_schedule(sk, skb, skb->truesize))
411411
return NULL;
412412

413-
msg = kzalloc(sizeof(*msg), __GFP_NOWARN | GFP_ATOMIC);
413+
msg = kzalloc(sizeof(*msg), __GFP_NOWARN | GFP_KERNEL);
414414
if (unlikely(!msg))
415415
return NULL;
416416

0 commit comments

Comments
 (0)