summaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_input.c
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2012-09-16 00:44:16 +0200
committerDavid S. Miller <davem@davemloft.net>2012-09-18 22:24:00 +0200
commit0e698bf6624c469cd4f3f391247b142963ca9c4e (patch)
tree143c603ac88a8d4bd8717329f9676ba28dcd6427 /net/ipv4/tcp_input.c
parentnetxen: check for root bus in netxen_mask_aer_correctable (diff)
downloadlinux-0e698bf6624c469cd4f3f391247b142963ca9c4e.tar.xz
linux-0e698bf6624c469cd4f3f391247b142963ca9c4e.zip
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>
Diffstat (limited to 'net/ipv4/tcp_input.c')
0 files changed, 0 insertions, 0 deletions