]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: Fix unbalanced rcu locking in rt6_update_exception_stamp_rt
authorDavid Ahern <dsahern@gmail.com>
Thu, 1 Aug 2019 21:36:35 +0000 (14:36 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Aug 2019 20:16:58 +0000 (13:16 -0700)
commit0706cdf1dd505f1939ef1b7cb7b69ab6a3bb0a93
tree7cca358b9fd78c5c5e8e53789b55818a2a4a9e14
parent065fa95f9d551a17b10c2353691615e26e076fbb
ipv6: Fix unbalanced rcu locking in rt6_update_exception_stamp_rt

The nexthop path in rt6_update_exception_stamp_rt needs to call
rcu_read_unlock if it fails to find a fib6_nh match rather than
just returning.

Fixes: ec1f43ce2a12 ("ipv6: Handle all fib6_nh in a nexthop in exception handling")
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/route.c