summaryrefslogtreecommitdiff
path: root/net/socket.c
diff options
context:
space:
mode:
authorParav Pandit <parav@nvidia.com>2020-08-21 22:12:20 +0300
committerDavid S. Miller <davem@davemloft.net>2020-08-24 16:02:46 -0700
commit79604c5de2c30b67079b9bfff48dae4bbd05ec4f (patch)
tree8b13fe8047c752e6e6c03cdf493b260976fdaad7 /net/socket.c
parent507ebe6444a44d9b7676a36f24b4d5360ef79327 (diff)
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: f4f541660121 ("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>
Diffstat (limited to 'net/socket.c')
0 files changed, 0 insertions, 0 deletions