ipvs: properly dereference dest_dst in ip_vs_forget_dev
authorJulian Anastasov <ja@ssi.bg>
Wed, 17 Apr 2013 20:50:45 +0000 (23:50 +0300)
committerSimon Horman <horms@verge.net.au>
Tue, 23 Apr 2013 02:43:05 +0000 (11:43 +0900)
commitd717bb2a9815f21ad962574daff821379f485ee3
tree9ba8124685d345bb08215d9172c860ac0d347aac
parent3e3251b3f289528732edab386ddf73ac428359b7
ipvs: properly dereference dest_dst in ip_vs_forget_dev

Use rcu_dereference_protected to resolve
sparse warning, found by kbuild test robot:

net/netfilter/ipvs/ip_vs_ctl.c:1464:35: warning: dereference of
noderef expression

Problem from commit 026ace060dfe29
("ipvs: optimize dst usage for real server")

Signed-off-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Simon Horman <horms@verge.net.au>
net/netfilter/ipvs/ip_vs_ctl.c