mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 05:48:40 +00:00
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>
This commit is contained in:
parent
1a7c6cc646
commit
7b1e0cba03
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue