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

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

net: macb: fix missing unlock on error in macb_start_xmit()



Fix missing unlock before return from function macb_start_xmit()
in the error handling case.

Fixes: 007e4ba3 ("net: macb: initialize checksum when using
checksum offloading")
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Acked-by: default avatarNicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 99c1790e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1398,7 +1398,7 @@ static int macb_start_xmit(struct sk_buff *skb, struct net_device *dev)

	if (macb_clear_csum(skb)) {
		dev_kfree_skb_any(skb);
		return NETDEV_TX_OK;
		goto unlock;
	}

	/* Map socket buffer for DMA transfer */