diff options
author | Bjørn Mork <bjorn@mork.no> | 2012-10-25 23:44:09 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-10-29 00:07:58 +0100 |
commit | 7b1e0cba0372c011fc9128a772cf668e70ba9219 (patch) | |
tree | ba23b5063a33818f98e1143a84dc065ee2f7b080 /drivers | |
parent | net: cdc_ncm: big endian fix (diff) | |
download | linux-7b1e0cba0372c011fc9128a772cf668e70ba9219.tar.xz linux-7b1e0cba0372c011fc9128a772cf668e70ba9219.zip |
net: cdc_ncm: error path lock fix
Fixes the sparse warning
drivers/net/usb/cdc_ncm.c:836:9: warning: context imbalance in 'cdc_ncm_txpath_bh' - different lock contexts for basic block
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/usb/cdc_ncm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/usb/cdc_ncm.c b/drivers/net/usb/cdc_ncm.c index 397de6396da6..ddc7b8880f60 100644 --- a/drivers/net/usb/cdc_ncm.c +++ b/drivers/net/usb/cdc_ncm.c @@ -819,6 +819,8 @@ static void cdc_ncm_txpath_bh(unsigned long param) netif_tx_lock_bh(ctx->netdev); usbnet_start_xmit(NULL, ctx->netdev); netif_tx_unlock_bh(ctx->netdev); + } else { + spin_unlock_bh(&ctx->mtx); } } |