YueHaibing
318f224d12
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:37:59 +02:00
..
2017-11-02 11:10:55 +01:00
2018-09-15 09:45:29 +02:00
2017-11-02 11:10:55 +01:00
2018-07-22 14:28:44 +02:00
2017-11-02 11:10:55 +01:00
2018-07-22 14:28:43 +02:00
2017-11-02 11:10:55 +01:00
2018-08-24 13:09:05 +02:00
2018-09-19 22:43:42 +02:00
2018-07-22 14:28:49 +02:00
2018-09-05 09:26:27 +02:00
2018-01-23 19:58:17 +01:00
2018-05-30 07:52:04 +02:00
2018-09-26 08:37:58 +02:00
2018-09-19 22:43:43 +02:00
2018-08-22 07:46:08 +02:00
2018-02-25 11:07:52 +01:00
2018-07-22 14:28:49 +02:00
2018-08-06 16:20:48 +02:00
2017-06-16 11:48:40 -04:00
2017-08-22 13:40:23 -07:00
2018-09-19 22:43:47 +02:00
2018-04-29 11:33:13 +02:00
2018-09-26 08:37:58 +02:00
2018-09-19 22:43:48 +02:00
2017-11-02 11:10:55 +01:00
2018-03-31 18:10:41 +02:00
2018-06-11 22:49:19 +02:00
2018-06-16 09:45:14 +02:00
2018-08-22 07:46:08 +02:00
2017-07-04 22:35:16 +01:00
2018-08-22 07:46:08 +02:00
2018-09-05 09:26:23 +02:00
2018-09-09 19:55:52 +02:00
2018-02-22 15:42:28 +01:00
2017-10-21 01:56:38 +01:00
2018-09-15 09:45:28 +02:00
2018-05-30 07:52:40 +02:00
2018-08-09 12:16:38 +02:00
2017-07-04 22:35:17 +01:00
2018-07-22 14:28:49 +02:00
2018-07-22 14:28:49 +02:00
2018-05-19 10:20:24 +02:00
2018-08-24 13:09:22 +02:00
2017-11-02 11:10:55 +01:00
2017-11-01 12:19:03 +09:00
2018-08-24 13:09:13 +02:00
2018-09-26 08:37:57 +02:00
2018-05-16 10:10:26 +02:00
2018-08-06 16:20:48 +02:00
2018-09-19 22:43:47 +02:00
2018-09-15 09:45:25 +02:00
2018-08-24 13:09:22 +02:00
2018-07-22 14:28:47 +02:00
2018-09-15 09:45:26 +02:00
2017-08-07 14:48:48 -07:00
2018-09-15 09:45:25 +02:00
2018-09-26 08:37:58 +02:00
2017-11-02 10:04:46 -07:00
2018-08-22 07:46:08 +02:00
2017-11-02 11:10:55 +01:00
2018-09-05 09:26:24 +02:00
2017-11-02 11:10:55 +01:00
2018-09-26 08:37:59 +02:00
2018-05-19 10:20:24 +02:00
2017-09-04 13:25:20 +02:00
2017-11-02 11:10:55 +01:00
2018-08-06 16:20:48 +02:00