diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2016-09-10 13:17:57 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-09-13 17:42:27 +0200 |
commit | a7c22bda52e24094c7bc96afcd897ddad2b28bc0 (patch) | |
tree | fc325ad97ac3671d3d5203d10ac41c1d676e7ff2 /drivers/net/ethernet/cadence | |
parent | net: Remove NO_IRQ from powerpc-only network drivers (diff) | |
download | linux-a7c22bda52e24094c7bc96afcd897ddad2b28bc0.tar.xz linux-a7c22bda52e24094c7bc96afcd897ddad2b28bc0.zip |
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: 007e4ba3ee13 ("net: macb: initialize checksum when using
checksum offloading")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/cadence')
-rw-r--r-- | drivers/net/ethernet/cadence/macb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/cadence/macb.c b/drivers/net/ethernet/cadence/macb.c index 0294b6a87265..63144bb413d1 100644 --- a/drivers/net/ethernet/cadence/macb.c +++ b/drivers/net/ethernet/cadence/macb.c @@ -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 */ |