commit | 0e698bf6624c469cd4f3f391247b142963ca9c4e | [log] [tgz] |
---|---|---|
author | Michael S. Tsirkin <mst@redhat.com> | Sat Sep 15 22:44:16 2012 +0000 |
committer | David S. Miller <davem@davemloft.net> | Tue Sep 18 16:24:00 2012 -0400 |
tree | 143c603ac88a8d4bd8717329f9676ba28dcd6427 | |
parent | e4d1aa40e363ed3e0486aeeeb0d173f7f822737e [diff] |
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 <mst@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>