From: Wei Yongjun Date: Thu, 18 May 2017 15:24:52 +0000 (+0000) Subject: ibmvnic: fix missing unlock on error in __ibmvnic_reset() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=6d0af07d5f4579ed8d43eb2de91c84c79c780755;p=openwrt%2Fstaging%2Fblogic.git 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 Reviewed-by: Nathan Fontenot Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/ibm/ibmvnic.c b/drivers/net/ethernet/ibm/ibmvnic.c index 4f2d329dba99..27f79339e9a8 100644 --- a/drivers/net/ethernet/ibm/ibmvnic.c +++ b/drivers/net/ethernet/ibm/ibmvnic.c @@ -1313,6 +1313,7 @@ static void __ibmvnic_reset(struct work_struct *work) if (rc) { free_all_rwi(adapter); + mutex_unlock(&adapter->reset_lock); return; }