Dan Carpenter 9145e2249e 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>
2024-03-22 18:03:29 -07:00
..
2024-03-07 21:12:43 -08:00
2024-02-20 10:50:19 +01:00
2024-02-28 19:36:39 -08:00
2024-01-23 15:13:55 +01:00
2024-01-04 10:23:10 -08:00
2023-10-16 21:05:33 -07:00
2024-02-28 19:36:39 -08:00
2024-02-28 19:36:39 -08:00
2022-12-20 03:13:45 +01:00
2023-09-14 16:16:36 +02:00
2023-08-29 17:39:15 -07:00