diff options
author | Dan Carpenter <dan.carpenter@linaro.org> | 2024-03-21 17:42:18 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-03-23 04:03:29 +0300 |
commit | 9145e2249ed68af99fdbbbf6111aaf0e2dfb72d0 (patch) | |
tree | f9ab836d2c2bbcc35f084da8094635c9cd41bb48 /net/ipv6 | |
parent | f6c8f5e8694c7a78c94e408b628afa6255cc428a (diff) | |
download | linux-9145e2249ed68af99fdbbbf6111aaf0e2dfb72d0.tar.xz |
nexthop: fix uninitialized variable in nla_put_nh_group_stats()
The "*hw_stats_used" value needs to be set on the success paths to prevent
an uninitialized variable bug in the caller, nla_put_nh_group_stats().
Fixes: 5072ae00aea4 ("net: nexthop: Expose nexthop group HW stats to user space")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Link: https://lore.kernel.org/r/f08ac289-d57f-4a1a-830f-cf9a0563cb9c@moroto.mountain
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/ipv6')
0 files changed, 0 insertions, 0 deletions