staging: bcm: fix error handling in bcm_init()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Sun, 2 Sep 2012 19:30:13 +0000 (23:30 +0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 4 Sep 2012 21:28:42 +0000 (14:28 -0700)
commitd7b990a035a86a07e81231caceb6e624056c258f
treecbb2c075ad29d7ff9b6f3c054f012e20259e12a8
parent1d200e8d0a53f419e89097b0fc197941228191c3
staging: bcm: fix error handling in bcm_init()

bcm_init() does not have proper error handling of usb_register().
The patch implements one.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Acked-by: Kevin McKinney <klmckinney1@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/bcm/InterfaceInit.c