ibmvnic: fix missing unlock on error in __ibmvnic_reset()
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 18 May 2017 15:24:52 +0000 (15:24 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 May 2017 19:18:31 +0000 (15:18 -0400)
commit6d0af07d5f4579ed8d43eb2de91c84c79c780755
tree799a8193c9eb6480346a13937850498d07780f9c
parentce064e68a7e1ae525cd525fac3a6901591ddae3c
ibmvnic: fix missing unlock on error in __ibmvnic_reset()

Add the missing unlock before return from function __ibmvnic_reset()
in the error handling case.

Fixes: ed651a10875f ("ibmvnic: Updated reset handling")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c