msm: net: Support for Removing SFE module
This change allow handling of unregister netfilter hook
while removing SFE module
Change-Id: Ic5ba52e82179e7496d27623edf92c6e64c35d19d
Signed-off-by: Ravinder Konka <rkonka@codeaurora.org>
diff --git a/net/netfilter/nf_conntrack_sip.c b/net/netfilter/nf_conntrack_sip.c
index e463a3a..b0fa56c 100644
--- a/net/netfilter/nf_conntrack_sip.c
+++ b/net/netfilter/nf_conntrack_sip.c
@@ -1,6 +1,6 @@
/* SIP extension for IP connection tracking.
*
- * Copyright (c) 2015,2017-2018, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2015,2017-2019 The Linux Foundation. All rights reserved.
* (C) 2005 by Christian Hentschel <chentschel@arnet.com.ar>
* based on RR's ip_conntrack_ftp.c and other modules.
* (C) 2007 United Security Providers
@@ -392,8 +392,13 @@
return 0;
}
+static void nf_hook_drop_sip(struct net *net, const struct nf_hook_entry *hook)
+{
+}
+
static const struct nf_queue_handler nf_sip_qh = {
.outfn = &nf_sip_enqueue_packet,
+ .nf_hook_drop = &nf_hook_drop_sip,
};
static