From: Michael S. Tsirkin Date: Sat, 15 Sep 2012 22:44:16 +0000 (+0000) Subject: net: fix memory leak on oom with zerocopy X-Git-Tag: v3.6-rc7~10^2~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e698bf6624c469cd4f3f391247b142963ca9c4e;p=pandora-kernel.git net: fix memory leak on oom with zerocopy 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed