linux/drivers/char/pcmcia/ipwireless
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
..
hardware.c drivers/char/pcmcia/ipwireless/hardware.c fix resource leak 2008-07-12 14:33:41 -07:00
hardware.h ipwireless: remove dead code 2008-04-29 08:06:01 -07:00
main.c ipwireless: driver for PC Card 3G/UMTS modem 2008-02-07 17:19:49 -08:00
main.h ipwireless: driver for PC Card 3G/UMTS modem 2008-02-07 17:19:49 -08:00
Makefile ipwireless: driver for PC Card 3G/UMTS modem 2008-02-07 17:19:49 -08:00
network.c ipwireless: remove dead code 2008-04-29 08:06:01 -07:00
network.h ipwireless: remove dead code 2008-04-29 08:06:01 -07:00
setup_protocol.h ipwireless: driver for PC Card 3G/UMTS modem 2008-02-07 17:19:49 -08:00
tty.c ipwireless: driver for PC Card 3G/UMTS modem 2008-02-07 17:19:49 -08:00
tty.h ipwireless: driver for PC Card 3G/UMTS modem 2008-02-07 17:19:49 -08:00