ipvs: null check of net->ipvs in lblc(r) shedulers
authorHans Schillstrom <hans.schillstrom@ericsson.com>
Thu, 26 Apr 2012 07:45:34 +0000 (09:45 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 30 Apr 2012 08:40:14 +0000 (10:40 +0200)
commit4b984cd50bc1b6d492175cd77bfabb78e76ffa67
treef338dce013046c295f177ad190cd5c88040ee8cf
parent39f618b4fd95ae243d940ec64c961009c74e3333
ipvs: null check of net->ipvs in lblc(r) shedulers

Avoid crash when registering shedulers after
the IPVS core initialization for netns fails. Do this by
checking for present core (net->ipvs).

Signed-off-by: Hans Schillstrom <hans.schillstrom@ericsson.com>
Acked-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Simon Horman <horms@verge.net.au>
net/netfilter/ipvs/ip_vs_lblc.c
net/netfilter/ipvs/ip_vs_lblcr.c