https://github.com/torvalds/linux
Revision 0e698bf6624c469cd4f3f391247b142963ca9c4e authored by Michael S. Tsirkin on 15 September 2012, 22:44:16 UTC, committed by David S. Miller on 18 September 2012, 20:24:00 UTC
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>
1 parent e4d1aa4
History
Tip revision: 0e698bf6624c469cd4f3f391247b142963ca9c4e authored by Michael S. Tsirkin on 15 September 2012, 22:44:16 UTC
net: fix memory leak on oom with zerocopy
Tip revision: 0e698bf
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 1014 bytes
.mailmap -rw-r--r-- 4.4 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 92.7 KB
Kbuild -rw-r--r-- 2.5 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 210.7 KB
Makefile -rw-r--r-- 46.1 KB
README -rw-r--r-- 17.3 KB
REPORTING-BUGS -rw-r--r-- 3.3 KB

README

back to top