From: Darren Jenkins Date: Sat, 12 Jul 2008 20:47:49 +0000 (-0700) Subject: drivers/char/pcmcia/ipwireless/hardware.c fix resource leak X-Git-Tag: v2.6.26~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=43f77e91eadbc290eb76a08110a039c809dde6c9;p=pandora-kernel.git 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 Acked-by: Jiri Kosina Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed