2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-22 20:23:57 +08:00
linux-next/drivers/char/pcmcia
Darren Jenkins 43f77e91ea drivers/char/pcmcia/ipwireless/hardware.c fix resource leak
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>
2008-07-12 14:33:41 -07:00
..
ipwireless drivers/char/pcmcia/ipwireless/hardware.c fix resource leak 2008-07-12 14:33:41 -07:00
cm4000_cs.c drivers/char: replace remaining __FUNCTION__ occurrences 2008-04-30 08:29:54 -07:00
cm4040_cs.c drivers/char: replace remaining __FUNCTION__ occurrences 2008-04-30 08:29:54 -07:00
cm4040_cs.h [PATCH] New Omnikey Cardman 4040 driver 2005-11-13 18:14:10 -08:00
Kconfig pcmcia: ipwireless depends on NETDEVICES 2008-02-13 16:21:20 -08:00
Makefile ipwireless: driver for PC Card 3G/UMTS modem 2008-02-07 17:19:49 -08:00
synclink_cs.c pcmcia: serial to int put_char method 2008-04-30 08:29:46 -07:00