YueHaibing
1e89472ff0
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:35:04 +02:00
..
2015-10-21 00:49:25 +02:00
2018-09-15 09:40:39 +02:00
2018-04-13 19:50:25 +02:00
2018-05-16 10:06:51 +02:00
2017-02-04 09:45:09 +01:00
2018-05-30 07:49:06 +02:00
2018-09-19 22:48:58 +02:00
2018-08-24 13:27:01 +02:00
2018-09-05 09:18:34 +02:00
2018-01-31 12:06:08 +01:00
2018-05-02 07:53:42 -07:00
2018-08-24 13:26:55 +02:00
2018-09-19 22:48:58 +02:00
2018-08-22 07:48:35 +02:00
2018-02-25 11:03:38 +01:00
2018-07-22 14:25:54 +02:00
2018-08-06 16:24:41 +02:00
2017-02-18 16:39:27 +01:00
2015-11-23 14:56:15 -05:00
2018-09-09 20:04:32 +02:00
2018-09-15 09:40:37 +02:00
2018-09-15 09:40:37 +02:00
2017-05-25 14:30:13 +02:00
2018-09-15 09:40:40 +02:00
2018-03-31 18:12:33 +02:00
2018-06-16 09:54:25 +02:00
2018-08-22 07:48:35 +02:00
2015-10-07 04:27:43 -07:00
2018-08-22 07:48:35 +02:00
2018-09-05 09:18:33 +02:00
2018-09-09 20:04:32 +02:00
2018-03-11 16:19:47 +01:00
2018-09-19 22:48:59 +02:00
2018-05-30 07:49:17 +02:00
2018-08-09 12:19:28 +02:00
2018-07-22 14:25:54 +02:00
2018-05-26 08:48:47 +02:00
2018-08-24 13:27:01 +02:00
2016-01-31 11:29:00 -08:00
2018-07-22 14:25:54 +02:00
2018-05-16 10:06:51 +02:00
2018-04-13 19:50:23 +02:00
2018-09-15 09:40:42 +02:00
2018-05-26 08:48:49 +02:00
2018-04-24 09:32:11 +02:00
2016-06-24 10:18:16 -07:00
2018-04-29 07:50:06 +02:00
2017-11-18 11:11:06 +01:00
2018-08-22 07:48:35 +02:00
2015-08-09 22:43:52 -07:00
2018-09-05 09:18:34 +02:00
2018-04-13 19:50:07 +02:00
2018-09-26 08:35:04 +02:00
2018-05-26 08:48:47 +02:00
2018-02-25 11:03:37 +01:00
2015-09-29 20:40:32 -07:00
2018-08-06 16:24:42 +02:00
2016-09-15 08:27:50 +02:00