Tom Rix
57d29a2935
net: rtnetlink: fix error handling in rtnl_fill_statsinfo()
...
The clang static analyzer reports this issue
rtnetlink.c:5481:2: warning: Undefined or garbage
value returned to caller
return err;
^~~~~~~~~~
There is a function level err variable, in the
list_for_each_entry_rcu block there is a shadow
err. Remove the shadow.
In the same block, the call to nla_nest_start_noflag()
can fail without setting an err. Set the err
to -EMSGSIZE.
Fixes: 216e690631 ("net: rtnetlink: rtnl_fill_statsinfo(): Permit non-EMSGSIZE error returns")
Signed-off-by: Tom Rix <trix@redhat.com >
Reviewed-by: Ido Schimmel <idosch@nvidia.com >
Reviewed-by: Petr Machata <petrm@nvidia.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2022-03-07 12:26:53 +00:00
..
2022-02-04 14:15:11 -08:00
2022-01-18 10:05:48 +02:00
2021-11-19 11:23:23 +00:00
2022-02-23 15:21:13 -08:00
2021-07-23 14:20:25 +01:00
2022-01-22 08:33:37 +02:00
2022-02-10 17:29:56 -08:00
2022-03-07 11:40:41 +00:00
2022-03-07 11:40:41 +00:00
2022-03-02 01:09:15 +01:00
2021-06-25 13:13:50 +02:00
2022-03-04 12:02:19 +00:00
2022-03-04 12:02:19 +00:00
2022-03-06 11:05:31 +00:00
2022-02-02 18:50:36 +01:00
2022-03-07 12:26:53 +00:00
2022-03-03 08:01:55 -08:00
2022-01-27 13:53:27 +00:00
2022-02-28 13:21:32 +00:00
2021-01-27 17:04:12 -08:00
2022-03-07 12:25:59 +00:00
2021-11-24 17:21:42 -08:00
2022-02-23 20:33:05 -08:00
2022-03-02 22:44:49 -08:00
2022-03-03 14:38:48 +00:00
2021-01-27 17:04:12 -08:00
2022-03-03 11:55:12 -08:00
2022-03-03 11:55:12 -08:00
2022-02-22 16:09:13 -08:00
2021-12-29 08:48:14 -08:00
2022-01-26 07:44:01 +01:00
2021-12-10 06:38:27 -08:00
2021-03-28 17:56:55 -07:00
2021-06-08 16:31:25 -07:00
2021-12-10 19:43:00 -08:00
2022-03-03 11:55:12 -08:00
2021-10-20 14:27:40 +01:00
2022-02-25 22:23:23 -08:00
2022-02-10 15:29:39 +00:00
2022-03-04 21:54:30 -08:00
2022-01-15 08:47:31 -08:00
2022-03-03 11:55:12 -08:00
2021-11-22 17:52:47 -05:00
2021-12-29 08:48:14 -08:00
2022-01-07 14:11:05 +00:00
2022-03-03 10:43:37 +00:00
2020-06-14 01:57:21 +09:00
2022-03-03 14:38:48 +00:00
2022-03-03 14:38:48 +00:00
2022-03-07 11:40:41 +00:00
2021-03-14 15:00:43 -07:00
2021-12-17 17:17:14 +01:00
2021-12-16 16:13:19 -08:00
2021-12-20 11:02:38 +01:00
2021-12-29 08:48:14 -08:00
2022-01-22 02:03:24 +00:00
2022-03-03 11:55:12 -08:00
2022-01-05 14:36:10 -08:00
2022-03-07 11:59:17 +00:00
2021-11-09 01:05:28 +01:00
2022-02-10 17:29:56 -08:00
2022-02-24 21:31:43 -08:00
2022-03-07 11:40:41 +00:00
2022-02-04 10:14:07 +00:00
2022-01-24 15:42:29 -08:00
2022-02-17 08:56:02 -08:00
2022-03-06 11:05:31 +00:00
2021-12-09 18:35:11 -08:00
2022-01-27 17:25:32 +01:00
2022-03-03 11:55:12 -08:00
2021-06-03 15:13:56 -07:00
2021-06-11 12:55:28 -07:00
2022-03-03 09:55:28 +00:00
2021-12-10 06:38:26 -08:00
2021-07-29 15:06:49 +01:00
2022-02-14 14:01:19 +00:00
2021-11-09 10:02:50 -08:00