aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/modules.py
diff options
context:
space:
mode:
authorCsókás, Bence <[email protected]>2024-06-05 10:42:51 +0200
committerJakub Kicinski <[email protected]>2024-06-06 17:34:03 -0700
commite96b2933152fd87b6a41765b2f58b158fde855b6 (patch)
tree4c592cdcd4c0c9752820a813201a2957a620497a /scripts/gdb/linux/modules.py
parentd30d0e49da71de8df10bf3ff1b3de880653af562 (diff)
net: sfp: Always call `sfp_sm_mod_remove()` on remove
If the module is in SFP_MOD_ERROR, `sfp_sm_mod_remove()` will not be run. As a consequence, `sfp_hwmon_remove()` is not getting run either, leaving a stale `hwmon` device behind. `sfp_sm_mod_remove()` itself checks `sfp->sm_mod_state` anyways, so this check was not really needed in the first place. Fixes: d2e816c0293f ("net: sfp: handle module remove outside state machine") Signed-off-by: "Csókás, Bence" <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions