diff options
author | Paolo Abeni <pabeni@redhat.com> | 2017-04-24 15:18:28 +0300 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2017-07-18 20:40:39 +0300 |
commit | eacf80709104eeff28d0e556ddc4d49ac58015a6 (patch) | |
tree | 71fd5fe1468700edeb896b7093b473e25e206b17 /net/batman-adv/sysfs.c | |
parent | 0b333ba55f7b0ccfb5e9a9b98cca22756e68c41a (diff) | |
download | linux-eacf80709104eeff28d0e556ddc4d49ac58015a6.tar.xz |
ipv6: move stub initialization after ipv6 setup completion
commit b7d6df57516f8e6a1c847b822ec2a62555455f88 upstream.
The ipv6 stub pointer is currently initialized before the ipv6
routing subsystem: a 3rd party can access and use such stub
before the routing data is ready.
Moreover, such pointer is not cleared in case of initialization
error, possibly leading to dangling pointers usage.
This change addresses the above moving the stub initialization
at the end of ipv6 init code.
Fixes: 5f81bd2e5d80 ("ipv6: export a stub for IPv6 symbols used by vxlan")
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Acked-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'net/batman-adv/sysfs.c')
0 files changed, 0 insertions, 0 deletions