From patchwork Sun Sep 23 03:49:14 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: inet_diag: make config INET_DIAG bool From: Gao feng X-Patchwork-Id: 186180 Message-Id: <1348372154-20663-1-git-send-email-gaofeng@cn.fujitsu.com> To: davem@davemloft.net, kuznet@ms2.inr.ac.ru Cc: netdev@vger.kernel.org, Gao feng Date: Sun, 23 Sep 2012 11:49:14 +0800 when inet_diag being compiled as module, inet_diag_handler_dump set netlink_dump_control.dump to inet_diag_dump,so if module inet_diag is unloaded,netlink will still try to call this function in netlink_dump. this will cause kernel panic. this patch makes config INET_DIAG bool to avoid inet_diag being compiled as module. Signed-off-by: Gao feng --- net/ipv4/Kconfig | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/net/ipv4/Kconfig b/net/ipv4/Kconfig index 5a19aeb..da56f84 100644 --- a/net/ipv4/Kconfig +++ b/net/ipv4/Kconfig @@ -403,7 +403,7 @@ config INET_LRO If unsure, say Y. config INET_DIAG - tristate "INET: socket monitoring interface" + bool "INET: socket monitoring interface" default y ---help--- Support for INET (TCP, DCCP, etc) socket monitoring interface used by