staging: btmtk_usb: check for a valid io_buf pointer
authorDevendra Naga <devendra.aaru@gmail.com>
Sun, 26 May 2013 03:04:16 +0000 (23:04 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 May 2013 12:02:06 +0000 (21:02 +0900)
commitcff2ae2185394eba19d100596848c7e8e598c652
tree8bdc0fd7568c85821c41709ea16a313296f52c10
parentb8313417e5e7bca8222a77f672baac1580201eb7
staging: btmtk_usb: check for a valid io_buf pointer

assigned to retval of kmalloc but not checked whether the allocation failed or not,
fail the registering if allocation fail

Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/btmtk_usb/btmtk_usb.c