Re: [PATCH] net: fix memory leak on oom with zerocopy

From: David Miller
Date: Tue Sep 18 2012 - 16:25:10 EST


From: "Michael S. Tsirkin" <mst@xxxxxxxxxx>
Date: Sun, 16 Sep 2012 11:44:16 +0300

> If orphan flags fails, we don't free the skb
> on receive, which leaks the skb memory.
>
> Return value was also wrong: netif_receive_skb
> is supposed to return NET_RX_DROP, not ENOMEM.
>
> Signed-off-by: Michael S. Tsirkin <mst@xxxxxxxxxx>

Applied, thanks Michael.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/