summaryrefslogtreecommitdiff
path: root/drivers/atm
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2018-10-15 06:07:16 +0300
committerDavid S. Miller <davem@davemloft.net>2018-10-16 08:48:35 +0300
commitd275444cc36130313119777fefd077b7d575d040 (patch)
tree8c39b5c161b30be55007046d34c40acb158da5fa /drivers/atm
parent65f2247d615532ab1909e0892cc01d04c5262032 (diff)
downloadlinux-d275444cc36130313119777fefd077b7d575d040.tar.xz
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>
Diffstat (limited to 'drivers/atm')
-rw-r--r--drivers/atm/fore200e.c1
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;