YueHaibing
af322ba0eb
xfrm: fix 'passing zero to ERR_PTR()' warning
...
[ Upstream commit 934ffce1343f22ed5e2d0bd6da4440f4848074de ]
Fix a static code checker warning:
net/xfrm/xfrm_policy.c:1836 xfrm_resolve_and_create_bundle() warn: passing zero to 'ERR_PTR'
xfrm_tmpl_resolve return 0 just means no xdst found, return NULL
instead of passing zero to ERR_PTR.
Fixes: d809ec895505 ("xfrm: do not assume that template resolving always returns xfrms")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-09-26 08:36:31 +02:00
..
2016-09-19 20:19:34 +02:00
2018-09-15 09:42:58 +02:00
2018-04-13 19:48:34 +02:00
2016-09-10 21:19:10 -07:00
2018-05-16 10:08:44 +02:00
2017-02-04 09:47:09 +01:00
2018-08-24 13:12:31 +02:00
2018-09-19 22:47:14 +02:00
2018-07-22 14:27:39 +02:00
2018-09-05 09:20:00 +02:00
2018-01-31 12:55:50 +01:00
2018-05-01 15:13:09 -07:00
2018-08-24 13:12:30 +02:00
2018-09-19 22:47:15 +02:00
2018-08-22 07:47:13 +02:00
2018-02-25 11:05:44 +01:00
2018-07-22 14:27:39 +02:00
2018-08-06 16:23:03 +02:00
2017-02-18 15:11:43 +01:00
2018-04-13 19:48:29 +02:00
2018-09-09 20:01:19 +02:00
2018-09-15 09:43:01 +02:00
2018-09-15 09:42:56 +02:00
2017-05-25 15:44:41 +02:00
2018-09-15 09:43:01 +02:00
2018-03-31 18:11:34 +02:00
2018-06-13 16:16:42 +02:00
2018-06-16 09:52:32 +02:00
2018-08-22 07:47:13 +02:00
2016-09-10 23:12:53 -07:00
2018-08-22 07:47:13 +02:00
2018-09-05 09:19:59 +02:00
2018-09-09 20:01:19 +02:00
2018-03-11 16:21:34 +01:00
2016-10-20 11:23:08 -04:00
2018-09-19 22:47:16 +02:00
2018-05-30 07:50:51 +02:00
2018-08-09 12:17:59 +02:00
2018-07-22 14:27:40 +02:00
2018-05-30 07:50:23 +02:00
2018-08-24 13:12:41 +02:00
2018-08-24 13:12:36 +02:00
2018-09-26 08:36:30 +02:00
2018-05-16 10:08:43 +02:00
2018-05-30 07:50:42 +02:00
2018-09-15 09:43:06 +02:00
2018-09-15 09:42:56 +02:00
2018-04-29 11:32:02 +02:00
2018-09-15 09:42:57 +02:00
2016-10-19 10:58:04 -04:00
2018-04-29 11:32:01 +02:00
2017-11-18 11:22:22 +01:00
2018-08-22 07:47:13 +02:00
2018-09-19 22:47:11 +02:00
2018-04-13 19:48:00 +02:00
2018-09-26 08:36:31 +02:00
2018-05-19 10:26:58 +02:00
2016-08-17 19:36:23 -04:00
2016-08-17 19:36:23 -04:00
2018-08-06 16:23:04 +02:00
2016-10-06 09:52:23 -07:00