Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6d0af07d authored by Wei Yongjun's avatar Wei Yongjun Committed by David S. Miller
Browse files

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: ed651a10 ("ibmvnic: Updated reset handling")
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: default avatarNathan Fontenot <nfont@linux.vnet.ibm.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ce064e68
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1313,6 +1313,7 @@ static void __ibmvnic_reset(struct work_struct *work)

	if (rc) {
		free_all_rwi(adapter);
		mutex_unlock(&adapter->reset_lock);
		return;
	}