ibmvnic: fix missing unlock on error in __ibmvnic_reset()
PATCH 1/1 ibmvnic: fix missing unlock on error in __ibmvnic_reset()
From: Wei Yongjun <[email protected]>
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 <[email protected]>
--- drivers/net/ethernet/ibm/ibmvnic.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/ethernet/ibm/ibmvnic.c +1 -0
@@ -1313,6 +1313,7 @@ static void __ibmvnic_reset(struct work_struct *work)if (rc) {free_all_rwi (adapter); +mutex_unlock (&adapter->reset_lock);return ; }
Quoted 7 lines · Wei Yongjun
From: Wei Yongjun <[email protected]>
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 <[email protected]>
Reviewed-by Nathan Fontenot <[email protected]>
Quoted 16 lines
--- drivers/net/ethernet/ibm/ibmvnic.c | 1 + 1 file changed, 1 insertion(+)drivers/net/ethernet/ibm/ibmvnic.c +1
-0@@ -1313,6 +1313,7 @@ static void __ibmvnic_reset(struct work_struct *work)if (rc) {free_all_rwi (adapter); +mutex_unlock (&adapter->reset_lock);return ; }
From: Wei Yongjun <[email protected]>
Date: Thu, 18 May 2017 15:24:52 +0000
Quoted 7 lines
From: Wei Yongjun <[email protected]>
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 <[email protected]>
Applied.