net: macb: fix missing unlock on error in macb_start_xmit()
authorWei Yongjun <weiyongjun1@huawei.com>
Sat, 10 Sep 2016 11:17:57 +0000 (11:17 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Sep 2016 15:42:27 +0000 (11:42 -0400)
commita7c22bda52e24094c7bc96afcd897ddad2b28bc0
treefc325ad97ac3671d3d5203d10ac41c1d676e7ff2
parent99c1790e5bbd31fe2b646bff868a55a13b1eeeb2
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>
drivers/net/ethernet/cadence/macb.c