diff --git a/net/xdp/xsk.c b/net/xdp/xsk.c index b6c0f08bd80d2e54610a4e3d1a0af4ce9abd6988..3700266229f6383bf3ecd6b1c920debafdc265bd 100644 --- a/net/xdp/xsk.c +++ b/net/xdp/xsk.c @@ -352,10 +352,8 @@ static int xsk_generic_xmit(struct sock *sk) len = desc.len; skb = sock_alloc_send_skb(sk, len, 1, &err); - if (unlikely(!skb)) { - err = -EAGAIN; + if (unlikely(!skb)) goto out; - } skb_put(skb, len); addr = desc.addr;