summaryrefslogtreecommitdiffstats
path: root/net/xfrm/xfrm_policy.c
diff options
context:
space:
mode:
authorAndrey Ryabinin <aryabinin@virtuozzo.com>2015-12-21 12:54:45 +0300
committerDavid S. Miller <davem@davemloft.net>2015-12-22 15:57:54 -0500
commite459dfeeb64008b2d23bdf600f03b3605dbb8152 (patch)
treed0f1c4b878c279acc8f9b77effa174145fbed999 /net/xfrm/xfrm_policy.c
parentef9cdd0fed3875b1ae9cc85987d8143354b2d4c8 (diff)
downloadlinux-0-day-e459dfeeb64008b2d23bdf600f03b3605dbb8152.tar.gz
linux-0-day-e459dfeeb64008b2d23bdf600f03b3605dbb8152.tar.xz
ipv6/addrlabel: fix ip6addrlbl_get()
ip6addrlbl_get() has never worked. If ip6addrlbl_hold() succeeded, ip6addrlbl_get() will exit with '-ESRCH'. If ip6addrlbl_hold() failed, ip6addrlbl_get() will use about to be free ip6addrlbl_entry pointer. Fix this by inverting ip6addrlbl_hold() check. Fixes: 2a8cc6c89039 ("[IPV6] ADDRCONF: Support RFC3484 configurable address selection policy table.") Signed-off-by: Andrey Ryabinin <aryabinin@virtuozzo.com> Reviewed-by: Cong Wang <cwang@twopensource.com> Acked-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/xfrm/xfrm_policy.c')
0 files changed, 0 insertions, 0 deletions