Commit 6e8bc03
net: mana: Init gf_stats_work before potential error paths in probe
Move INIT_DELAYED_WORK(gf_stats_work) to before mana_create_eq(),
while keeping schedule_delayed_work() at its original location.
Previously, if any function between mana_create_eq() and the
INIT_DELAYED_WORK call failed, mana_probe() would call mana_remove()
which unconditionally calls cancel_delayed_work_sync(gf_stats_work)
in __flush_work() or debug object warnings with
CONFIG_DEBUG_OBJECTS_WORK enabled.
Fixes: be4f1d6 ("net: mana: Add standard counter rx_missed_errors")
Signed-off-by: Erni Sri Satya Vennela <ernis@linux.microsoft.com>
Link: https://patch.msgid.link/20260420124741.1056179-3-ernis@linux.microsoft.com
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>1 parent cb4a907 commit 6e8bc03
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3635 | 3635 | | |
3636 | 3636 | | |
3637 | 3637 | | |
| 3638 | + | |
| 3639 | + | |
3638 | 3640 | | |
3639 | 3641 | | |
3640 | 3642 | | |
| |||
3709 | 3711 | | |
3710 | 3712 | | |
3711 | 3713 | | |
3712 | | - | |
3713 | 3714 | | |
3714 | 3715 | | |
3715 | 3716 | | |
| |||
0 commit comments