From: Julian Anastasov Date: Sat, 7 Jul 2012 17:30:11 +0000 (+0300) Subject: ipvs: fix oops in ip_vs_dst_event on rmmod X-Git-Tag: v3.5~24^2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=283283c4da91adc44b03519f434ee1e7e91d6fdb;p=pandora-kernel.git ipvs: fix oops in ip_vs_dst_event on rmmod After commit 39f618b4fd95ae243d940ec64c961009c74e3333 (3.4) "ipvs: reset ipvs pointer in netns" we can oops in ip_vs_dst_event on rmmod ip_vs because ip_vs_control_cleanup is called after the ipvs_core_ops subsys is unregistered and net->ipvs is NULL. Fix it by exiting early from ip_vs_dst_event if ipvs is NULL. It is safe because all services and dests for the net are already freed. Signed-off-by: Julian Anastasov Signed-off-by: Simon Horman Signed-off-by: Pablo Neira Ayuso --- Reading git-diff-tree failed