ipvs: add check in ftp for initialized core
authorJulian Anastasov <ja@ssi.bg>
Tue, 24 Apr 2012 21:29:59 +0000 (00:29 +0300)
committerSimon Horman <horms@verge.net.au>
Thu, 26 Apr 2012 06:26:35 +0000 (15:26 +0900)
commit8d08d71ce59438a6ef06be5db07966e0c144b74e
tree804e30b7bd516ff39f6f6656fc760ea8db993ead
parent8f9b9a2fad47af27e14b037395e03cd8278d96d7
ipvs: add check in ftp for initialized core

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

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