Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ba4cc509 authored by Utkarsh Saxena's avatar Utkarsh Saxena Committed by Gerrit - the friendly Code Review server
Browse files

net: fix to handle warning message



This change will unregister the queue handler before registering for SIP
nf queue handler.

Change-Id: Ifd2316d428970d28c6d988e6e54ec67d1760b011
Acked-by: default avatarSuraj Jaiswal <c_surajj@qti.qualcomm.com>
Signed-off-by: default avatarUtkarsh Saxena <usaxena@codeaurora.org>
parent e68546c8
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
/* SIP extension for IP connection tracking.
 *
 * Copyright (c) 2016, The Linux Foundation. All rights reserved.
 * Copyright (c) 2016-2017, 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
@@ -452,6 +452,9 @@ int proc_sip_segment(struct ctl_table *ctl, int write,
	if (sip_segmentation_status == nf_ct_enable_sip_segmentation)
		return ret;
	if (nf_ct_enable_sip_segmentation) {
		pr_debug("de-registering queue handler before register for sip\n");
		nf_unregister_queue_handler();

		pr_debug("registering queue handler\n");
		nf_register_queue_handler(&nf_sip_qh);
	} else {