]> git.baikalelectronics.ru Git - kernel.git/commit
USB: usblcd, fix memory leak
authorJiri Slaby <jirislaby@gmail.com>
Wed, 23 Sep 2009 14:09:56 +0000 (16:09 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 9 Oct 2009 20:52:06 +0000 (13:52 -0700)
commit8eff18a15afd8774b0d799e3059e84cead9da230
treebd7bc6dc6283298c8e6877bce8967f2bb6ef4390
parent8802d722d94be7c6fabe57df6efd2e34278fc7d5
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