[PATCH] USB: fix pointer dereference in drivers/usb/misc/usblcd
commit053be305d3a5ae0152991f25c6579127fb48710c
authorEric Sesterhenn <snakebyte@gmx.de>
Mon, 26 Jun 2006 22:57:42 +0000 (27 00:57 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 12 Jul 2006 23:03:23 +0000 (12 16:03 -0700)
tree236f7e47eff55010f51e2a097b7a409fc81cfd3f
parentc1b45f247a2901de3982f33196d5caf8ca5b9799
[PATCH] USB: fix pointer dereference in drivers/usb/misc/usblcd

coverity spotted (id #185) that we still use urb, if the allocation
fails in the error path. This patch fixes this by returning directly.

Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/misc/usblcd.c