ipv6: Fix another sparse warning on rt6i_node
commit254610c85c66d4df64c89873eb6eb9b8461f0ded
authorBen Hutchings <ben@decadent.org.uk>
Fri, 1 Feb 2019 02:10:36 +0000 (1 02:10 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Mon, 11 Feb 2019 17:53:13 +0000 (11 17:53 +0000)
treeb46b098c1dc58b80090bb34c6236a691aed02ab1
parent610fa21454f682a1de955af0d494a391c7d7f207
ipv6: Fix another sparse warning on rt6i_node

Commit 0933273ce750 "ipv6: fix sparse warning on rt6i_node" fixed some
sparse warnings in ip6_fib.c, but introduced a new one in
fib6_update_sernum() (which was removed before the corresponding
upstream commit).

fib6_update_sernum() is called in a RCU read-side section, so use
rcu_dereference() to read rt6_info::rt6i_node.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
net/ipv6/ip6_fib.c