aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/ah4.c
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2017-01-09 14:20:49 +0100
committerSteffen Klassert <steffen.klassert@secunet.com>2017-01-10 10:57:14 +0100
commit75cda62d9ca2cd3fab0412d438fcd1bfa0580b3d (patch)
tree8440ffce5bf5161b762fa15be57e019cfb4917c8 /net/ipv4/ah4.c
parentxfrm: add and use xfrm_state_afinfo_get_rcu (diff)
downloadlinux-dev-75cda62d9ca2cd3fab0412d438fcd1bfa0580b3d.tar.xz
linux-dev-75cda62d9ca2cd3fab0412d438fcd1bfa0580b3d.zip
xfrm: state: simplify rcu_read_unlock handling in two spots
Instead of: if (foo) { unlock(); return bar(); } unlock(); do: unlock(); if (foo) return bar(); This is ok because rcu protected structure is only dereferenced before the conditional. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/ipv4/ah4.c')
0 files changed, 0 insertions, 0 deletions