katrinzhou
bb5584c25b
ipv6/sit: fix ipip6_tunnel_get_prl return value
...
commit adabdd8f6acabc0c3fdbba2e7f5a2edd9c5ef22d upstream.
When kcalloc fails, ipip6_tunnel_get_prl() should return -ENOMEM.
Move the position of label "out" to return correctly.
Addresses-Coverity: ("Unused value")
Fixes: 300aaeeaab5f ("[IPV6] SIT: Add SIOCGETPRL ioctl to get/dump PRL.")
Signed-off-by: katrinzhou <katrinzhou@tencent.com>
Reviewed-by: Eric Dumazet<edumazet@google.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://lore.kernel.org/r/20220628035030.1039171-1-zys.zljxml@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-07-07 17:30:11 +02:00
..
2017-06-24 07:11:12 +02:00
2021-10-17 10:05:40 +02:00
2020-05-20 08:15:30 +02:00
2022-06-14 16:52:29 +02:00
2020-05-20 08:15:30 +02:00
2020-11-24 13:02:52 +01:00
2020-08-21 11:01:55 +02:00
2022-01-27 08:47:42 +01:00
2021-01-09 13:35:49 +01:00
2020-06-11 09:22:18 +02:00
2018-08-24 13:12:36 +02:00
2017-07-05 14:40:16 +02:00
2021-03-03 17:44:46 +01:00
2020-05-20 08:15:30 +02:00
2022-06-25 11:45:19 +02:00
2018-11-10 07:42:58 -08:00
2020-03-11 07:53:05 +01:00
2019-06-22 08:17:21 +02:00
2021-05-22 10:40:34 +02:00
2021-03-03 17:44:46 +01:00
2021-04-07 12:05:38 +02:00
2022-03-02 11:32:02 +01:00
2022-03-28 08:06:05 +02:00
2022-02-08 18:15:27 +01:00
2019-01-09 16:16:40 +01:00
2022-01-11 13:38:13 +01:00
2022-02-16 12:43:53 +01:00
2020-08-21 11:01:55 +02:00
2021-06-03 08:23:32 +02:00
2018-11-10 07:42:57 -08:00
2021-07-20 16:21:07 +02:00
2019-09-21 07:14:01 +02:00
2018-10-18 09:13:24 +02:00
2020-05-20 08:15:30 +02:00
2020-01-29 10:24:25 +01:00
2021-04-16 11:59:06 +02:00
2022-07-07 17:30:11 +02:00
2020-11-18 18:26:29 +01:00
2021-07-28 09:14:26 +02:00
2018-01-31 12:55:55 +01:00
2016-11-24 15:32:14 -05:00
2018-01-31 12:55:55 +01:00
2021-10-06 10:23:42 +02:00
2016-11-24 15:32:14 -05:00
2016-09-21 10:09:14 +02:00
2017-06-14 15:05:51 +02:00
2017-06-14 15:05:51 +02:00
2021-07-28 09:14:25 +02:00
2018-06-26 08:08:05 +08:00
2019-05-25 18:26:54 +02:00