aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wan/lapbether.c
diff options
context:
space:
mode:
authorPavan Chebbi <[email protected]>2020-08-26 05:08:32 +0000
committerDavid S. Miller <[email protected]>2020-08-26 14:19:03 +0000
commitc1c2d77408022a398a1a7c51cf20488c922629de (patch)
tree38535f2d28226bd8e2e094da78d7b89012361a76 /drivers/net/wan/lapbether.c
parentnet: dp83869: Fix RGMII internal delay configuration (diff)
downloadkernel-c1c2d77408022a398a1a7c51cf20488c922629de.tar.gz
kernel-c1c2d77408022a398a1a7c51cf20488c922629de.zip
bnxt_en: Don't query FW when netif_running() is false.
In rare conditions like two stage OS installation, the ethtool's get_channels function may be called when the device is in D3 state, leading to uncorrectable PCI error. Check netif_running() first before making any query to FW which involves writing to BAR. Fixes: db4723b3cd2d ("bnxt_en: Check max_tx_scheduler_inputs value from firmware.") Signed-off-by: Pavan Chebbi <[email protected]> Signed-off-by: Michael Chan <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/wan/lapbether.c')
0 files changed, 0 insertions, 0 deletions