katrinzhou
d6371303b4
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:53:29 +02:00
..
2021-07-22 16:19:03 +02:00
2022-03-11 12:22:36 +01:00
2021-08-13 16:30:35 -07:00
2021-12-01 09:04:53 +01:00
2021-07-23 14:20:25 +01:00
2021-06-10 14:08:09 -07:00
2022-06-22 14:22:01 +02:00
2022-05-18 10:26:47 +02:00
2022-06-09 10:22:58 +02:00
2022-04-13 20:59:25 +02:00
2021-06-25 13:13:50 +02:00
2022-05-25 09:57:34 +02:00
2021-09-14 12:51:15 +01:00
2022-05-12 12:30:09 +02:00
2022-05-25 09:57:28 +02:00
2022-06-29 09:03:25 +02:00
2022-03-08 19:12:52 +01:00
2021-11-18 19:16:33 +01:00
2021-08-05 13:27:50 +01:00
2022-05-09 09:14:34 +02:00
2021-08-03 13:05:26 +01:00
2022-06-29 09:03:23 +02:00
2022-06-29 09:03:22 +02:00
2022-02-08 18:34:09 +01:00
2022-07-07 17:53:29 +02:00
2022-07-07 17:53:29 +02:00
2021-08-09 10:13:32 +01:00
2021-06-29 11:28:21 -07:00
2022-06-14 18:36:22 +02:00
2022-06-22 14:21:58 +02:00
2022-04-27 14:38:53 +02:00
2021-06-08 16:31:25 -07:00
2022-03-28 09:58:46 +02:00
2022-06-09 10:23:26 +02:00
2021-09-07 14:06:08 +01:00
2022-04-13 20:59:16 +02:00
2021-12-08 09:04:47 +01:00
2022-06-09 10:22:46 +02:00
2022-01-05 12:42:37 +01:00
2022-07-07 17:53:27 +02:00
2022-04-13 20:59:10 +02:00
2022-05-18 10:26:49 +02:00
2022-01-27 11:04:00 +01:00
2022-06-09 10:22:46 +02:00
2022-06-29 09:03:18 +02:00
2022-04-27 14:38:53 +02:00
2022-01-11 15:35:16 +01:00
2021-09-02 11:37:02 +01:00
2021-12-22 09:32:42 +01:00
2022-04-08 14:23:00 +02:00
2022-07-07 17:53:25 +02:00
2022-06-09 10:23:02 +02:00
2022-07-07 17:53:27 +02:00
2022-06-09 10:22:59 +02:00
2022-06-14 18:36:11 +02:00
2021-11-18 19:17:11 +01:00
2022-07-07 17:53:25 +02:00
2021-08-04 12:35:07 +01:00
2022-07-07 17:53:28 +02:00
2022-06-29 09:03:25 +02:00
2022-06-14 18:36:17 +02:00
2022-04-08 14:23:51 +02:00
2022-06-09 10:23:26 +02:00
2022-04-08 14:23:53 +02:00
2022-06-29 09:03:21 +02:00
2022-05-25 09:57:30 +02:00
2021-06-03 15:13:56 -07:00
2021-06-11 12:55:28 -07:00
2021-07-29 15:06:49 +01:00
2021-07-29 15:06:49 +01:00
2022-01-27 11:03:52 +01:00