Staging: wilc1000: unlock on error in init_chip()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 21 Dec 2018 09:12:02 +0000 (12:12 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Jan 2019 15:31:09 +0000 (16:31 +0100)
commit0a9019cc8ae0caf97d3d914d178e31ffd37cc48e
tree44faadb45ef836fec764336a49d0fb499b867c59
parentfe2570fbf3dfce39996819deeaf1693ac6d7b5a3
Staging: wilc1000: unlock on error in init_chip()

When there is an error in init_bus() then we need to call release_bus()
before we return.

Fixes: c5c77ba18ea6 ("staging: wilc1000: Add SDIO/SPI 802.11 driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_wlan.c