https://github.com/torvalds/linux
Revision 43f77e91eadbc290eb76a08110a039c809dde6c9 authored by Darren Jenkins on 12 July 2008, 20:47:49 UTC, committed by Linus Torvalds on 12 July 2008, 21:33:41 UTC
Coverity CID: 2172 RESOURCE_LEAK

When pool_allocate() tries to enlarge a packet, if it can not allocate enough
memory, it returns NULL without first freeing the old packet.

This patch just frees the packet first.

Signed-off-by: Darren Jenkins <darrenrjenkins@gmail.com>
Acked-by: Jiri Kosina <jkosina@suse.cz>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent a26929f
History
Tip revision: 43f77e91eadbc290eb76a08110a039c809dde6c9 authored by Darren Jenkins on 12 July 2008, 20:47:49 UTC
drivers/char/pcmcia/ipwireless/hardware.c fix resource leak
Tip revision: 43f77e9
File Mode Size
Documentation
arch
block
crypto
drivers
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
usr
virt
.gitignore -rw-r--r-- 867 bytes
.mailmap -rw-r--r-- 3.6 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 90.6 KB
Kbuild -rw-r--r-- 2.4 KB
MAINTAINERS -rw-r--r-- 98.6 KB
Makefile -rw-r--r-- 53.8 KB
README -rw-r--r-- 16.5 KB
REPORTING-BUGS -rw-r--r-- 3.1 KB

README

back to top