Message ID | 20170518152452.8606-1-weiyj.lk@gmail.com (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show |
On 05/18/2017 10:24 AM, Wei Yongjun wrote: > From: Wei Yongjun <weiyongjun1@huawei.com> > > 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> > --- > drivers/net/ethernet/ibm/ibmvnic.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/net/ethernet/ibm/ibmvnic.c b/drivers/net/ethernet/ibm/ibmvnic.c > index 4f2d329..27f7933 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; > } >
From: Wei Yongjun <weiyj.lk@gmail.com> Date: Thu, 18 May 2017 15:24:52 +0000 > From: Wei Yongjun <weiyongjun1@huawei.com> > > 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> Applied.
diff --git a/drivers/net/ethernet/ibm/ibmvnic.c b/drivers/net/ethernet/ibm/ibmvnic.c index 4f2d329..27f7933 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; }