]> 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)
commitab453f2f736acefbc8f1fd593f370e343e7d91c6
treefc325ad97ac3671d3d5203d10ac41c1d676e7ff2
parentb50cef3dd6092c7457dd79e2239da8c744074d47
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: beec30a41ba7 ("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