diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2018-10-15 03:07:16 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-10-15 22:48:35 -0700 |
commit | d275444cc36130313119777fefd077b7d575d040 (patch) | |
tree | 8c39b5c161b30be55007046d34c40acb158da5fa | |
parent | 65f2247d615532ab1909e0892cc01d04c5262032 (diff) | |
download | linux-d275444cc36130313119777fefd077b7d575d040.tar.gz linux-d275444cc36130313119777fefd077b7d575d040.tar.bz2 linux-d275444cc36130313119777fefd077b7d575d040.zip |
fore200e: fix missing unlock on error in bsq_audit()
Add the missing unlock before return from function bsq_audit()
in the error handling case.
Fixes: 1d9d8be91788 ("fore200e: check for dma mapping failures")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/atm/fore200e.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/atm/fore200e.c b/drivers/atm/fore200e.c index 40d6ddbf1d5e..f55ffde877b5 100644 --- a/drivers/atm/fore200e.c +++ b/drivers/atm/fore200e.c @@ -1606,6 +1606,7 @@ fore200e_send(struct atm_vcc *vcc, struct sk_buff *skb) if (dma_mapping_error(fore200e->dev, tpd->tsd[0].buffer)) { if (tx_copy) kfree(data); + spin_unlock_irqrestore(&fore200e->q_lock, flags); return -ENOMEM; } tpd->tsd[ 0 ].length = tx_len; |