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

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

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: 1d9d8be9 ("fore200e: check for dma mapping failures")
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 65f2247d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;