Staging: tm6000: check usb_alloc_urb() return
authorDan Carpenter <error27@gmail.com>
Mon, 3 Jan 2011 05:44:38 +0000 (08:44 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 21 Jan 2011 20:14:47 +0000 (12:14 -0800)
commit2591418bb18ea597dc34cc369899e11c3d4ecc87
tree60b2869c3c080781169530dd1458e441342a0812
parentb01627c608d97b5246eb7a4b75c40f2a1fb4dc30
Staging: tm6000: check usb_alloc_urb() return

usb_alloc_urb() can return NULL so check for that and return
-ENOMEM if it happens.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/tm6000/tm6000-input.c