Input: usbtouchscreen - fix leaks and check return value of usb_submit_urb()
authorOndrej Zary <linux@rainbow-software.org>
Thu, 4 Feb 2010 08:20:35 +0000 (00:20 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 4 Feb 2010 08:22:01 +0000 (00:22 -0800)
commit1e87a43080a259a0e9739377708ece163b08de8d
tree1742cdf25086b879d97cdbd07d66168b9cb61283
parent5197424cdcccd2b0b1922babb93969b2515c43ce
Input: usbtouchscreen - fix leaks and check return value of usb_submit_urb()

Fix urb leak in error path of initialization and make sure we handle
errors from initial usb_submit_urb().

Signed-off-by: Ondrej Zary <linux@rainbow-software.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/touchscreen/usbtouchscreen.c