Repository navigation
Commit 79604c5
devlink: Fix per port reporter fields initialization
Cited patch in fixes tag initializes reporters_list and reporters_lock
of a devlink port after devlink port is added to the list. Once port
is added to the list, devlink_nl_cmd_health_reporter_get_dumpit()
can access the uninitialized mutex and reporters list head.
Fix it by initializing port reporters field before adding port to the
list.
Fixes: f4f5416 ("devlink: Implement devlink health reporters on per-port basis")
Signed-off-by: Parav Pandit <parav@nvidia.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 507ebe6 commit 79604c5
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7555 | 7555 | | |
7556 | 7556 | | |
7557 | 7557 | | |
| 7558 | + | |
| 7559 | + | |
7558 | 7560 | | |
7559 | 7561 | | |
7560 | 7562 | | |
7561 | | - | |
7562 | | - | |
7563 | 7563 | | |
7564 | 7564 | | |
7565 | 7565 | | |
| |||
7576 | 7576 | | |
7577 | 7577 | | |
7578 | 7578 | | |
7579 | | - | |
7580 | | - | |
7581 | 7579 | | |
7582 | 7580 | | |
7583 | 7581 | | |
7584 | 7582 | | |
7585 | 7583 | | |
| 7584 | + | |
| 7585 | + | |
7586 | 7586 | | |
7587 | 7587 | | |
7588 | 7588 | | |
| |||
0 commit comments