diff options
author | Bjørn Mork <bjorn@mork.no> | 2012-10-25 21:44:09 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-10-28 23:07:58 (GMT) |
commit | 7b1e0cba0372c011fc9128a772cf668e70ba9219 (patch) | |
tree | ba23b5063a33818f98e1143a84dc065ee2f7b080 /drivers/net/usb | |
parent | 1a7c6cc646782b854b036d287611a0659c40fc9d (diff) | |
download | linux-fsl-qoriq-7b1e0cba0372c011fc9128a772cf668e70ba9219.tar.xz |
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/net/usb')
-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 397de63..ddc7b88 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); } } |