USB: usblcd, fix memory leak
commit696a4ace98b6b9c05c642a6840be98d6fde57655
authorJiri Slaby <jirislaby@gmail.com>
Wed, 23 Sep 2009 14:09:56 +0000 (23 16:09 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 9 Oct 2009 20:52:06 +0000 (9 13:52 -0700)
treebd7bc6dc6283298c8e6877bce8967f2bb6ef4390
parent0f0ba794dcd14c9154afdf36df6a7e18cceec121
USB: usblcd, fix memory leak

Stanse found a memory leak in lcd_probe. Instead of returning without
releasing the memory, jump to the error label which frees it.

http://stanse.fi.muni.cz/

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/misc/usblcd.c