diff options
author | Xin Long <lucien.xin@gmail.com> | 2018-02-17 10:16:22 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-05-30 08:51:58 +0300 |
commit | 020c32a91ee0d2744479dad9b2f8aab8a7081024 (patch) | |
tree | 9981874da8927a5b92e820f72b3060d58ee55a6e /include/net | |
parent | d0d9330fa2a382dbe09574e6d3f69d24ca242ab9 (diff) | |
download | linux-020c32a91ee0d2744479dad9b2f8aab8a7081024.tar.xz |
xfrm: do not call rcu_read_unlock when afinfo is NULL in xfrm_get_tos
[ Upstream commit 143a4454daaf0e80a2b9f37159a0d6d2b61e64ed ]
When xfrm_policy_get_afinfo returns NULL, it will not hold rcu
read lock. In this case, rcu_read_unlock should not be called
in xfrm_get_tos, just like other places where it's calling
xfrm_policy_get_afinfo.
Fixes: f5e2bb4f5b22 ("xfrm: policy: xfrm_get_tos cannot fail")
Signed-off-by: Xin Long <lucien.xin@gmail.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>
Diffstat (limited to 'include/net')
0 files changed, 0 insertions, 0 deletions