]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0cde64beba07932aec76a9ca8b89df2ed8965d83
treefc325ad97ac3671d3d5203d10ac41c1d676e7ff2
parentea40f04bf3f3614ed2996d9992af7e3ae7ea129e
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: d9a405413749 ("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