diff options
author | 2018-02-17 15:16:22 +0800 | |
---|---|---|
committer | 2018-02-19 08:45:25 +0100 | |
commit | 143a4454daaf0e80a2b9f37159a0d6d2b61e64ed (patch) | |
tree | be8531f260c9bec64a3f54255633769ac402ffdc /tools/perf/scripts/python/export-to-postgresql.py | |
parent | xfrm: reuse uncached_list to track xdsts (diff) | |
download | wireguard-linux-143a4454daaf0e80a2b9f37159a0d6d2b61e64ed.tar.xz wireguard-linux-143a4454daaf0e80a2b9f37159a0d6d2b61e64ed.zip |
xfrm: do not call rcu_read_unlock when afinfo is NULL in xfrm_get_tos
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions