Parav Pandit
79604c5de2
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: f4f5416601 ("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 >
2020-08-24 16:02:46 -07:00
..
2020-06-14 01:57:21 +09:00
2020-08-15 08:34:36 -07:00
2020-02-24 13:02:53 -08:00
2020-06-28 21:37:23 -07:00
2020-08-03 15:48:32 -07:00
2020-08-07 11:33:22 -07:00
2020-07-25 17:49:04 -07:00
2020-06-26 10:37:11 +02:00
2020-08-07 11:33:22 -07:00
2020-08-03 23:32:23 +02:00
2020-08-04 14:27:25 -07:00
2020-08-18 12:28:45 -07:00
2020-07-24 15:41:54 -07:00
2020-08-15 11:12:58 +02:00
2020-08-03 11:05:26 +02:00
2020-08-24 16:02:46 -07:00
2020-06-23 20:27:09 -07:00
2020-08-22 12:38:34 -07:00
2020-08-03 16:03:18 -07:00
2020-04-28 14:39:46 -07:00
2020-07-23 15:14:58 -07:00
2020-05-23 16:56:17 -07:00
2020-08-23 11:48:27 -07:00
2020-07-31 16:46:26 -07:00
2020-07-24 15:41:54 -07:00
2019-09-26 08:56:17 +02:00
2020-08-22 12:39:55 -07:00
2020-08-20 16:28:04 -07:00
2020-08-05 20:13:21 -07:00
2020-07-24 15:41:54 -07:00
2020-08-02 01:02:12 -07:00
2020-08-22 12:44:37 -07:00
2020-06-20 17:22:22 -07:00
2020-06-14 01:57:21 +09:00
2020-07-24 15:41:54 -07:00
2020-08-07 11:33:22 -07:00
2020-08-07 11:33:22 -07:00
2020-07-27 11:40:47 -07:00
2020-08-18 12:28:45 -07:00
2020-07-23 11:49:41 -07:00
2020-08-16 16:05:36 -07:00
2020-07-13 17:20:40 -07:00
2020-08-23 11:48:27 -07:00
2020-07-24 15:41:54 -07:00
2020-08-11 10:34:30 -07:00
2020-06-14 01:57:21 +09:00
2020-08-13 15:53:30 -07:00
2020-08-13 15:37:30 -07:00
2020-07-24 15:41:54 -07:00
2020-05-23 16:36:05 -07:00
2020-08-17 15:00:41 -07:00
2020-08-02 01:02:12 -07:00
2019-12-16 10:15:49 +01:00
2020-07-24 15:41:54 -07:00
2020-08-02 01:02:12 -07:00
2020-08-23 11:48:27 -07:00
2020-08-20 16:37:37 -07:00
2020-08-20 12:07:31 -07:00
2019-06-22 08:59:24 -04:00
2020-08-15 08:26:55 -07:00
2020-07-13 17:20:40 -07:00
2020-08-23 11:48:27 -07:00
2020-08-11 10:20:34 -07:00
2020-07-19 18:16:41 -07:00
2020-08-12 12:56:06 -07:00
2019-08-10 15:25:47 -07:00
2020-08-18 12:28:45 -07:00
2020-07-24 15:41:54 -07:00
2020-07-28 12:50:15 +02:00
2020-08-10 19:07:44 -07:00
2020-08-07 12:43:25 -07:00
2020-06-30 15:57:34 -07:00
2020-07-07 15:41:05 -07:00
2020-05-23 16:56:17 -07:00
2020-08-10 12:06:44 -07:00