summaryrefslogtreecommitdiff
path: root/net/ethtool/common.c
diff options
context:
space:
mode:
authorDavid Christensen <drc@linux.vnet.ibm.com>2020-06-17 21:51:17 +0300
committerDavid S. Miller <davem@davemloft.net>2020-06-19 06:35:04 +0300
commit3a2656a211caf35e56afc9425e6e518fa52f7fbc (patch)
treeef10066ea45a0efcae4703b620742d360415dfa7 /net/ethtool/common.c
parent4c98045c9b74feab837be58986c0517d3cc661f1 (diff)
downloadlinux-3a2656a211caf35e56afc9425e6e518fa52f7fbc.tar.xz
tg3: driver sleeps indefinitely when EEH errors exceed eeh_max_freezes
The driver function tg3_io_error_detected() calls napi_disable twice, without an intervening napi_enable, when the number of EEH errors exceeds eeh_max_freezes, resulting in an indefinite sleep while holding rtnl_lock. Add check for pcierr_recovery which skips code already executed for the "Frozen" state. Signed-off-by: David Christensen <drc@linux.vnet.ibm.com> Reviewed-by: Michael Chan <michael.chan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ethtool/common.c')
0 files changed, 0 insertions, 0 deletions