[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20070321104456.GA2637@2ka.mipt.ru>
Date: Wed, 21 Mar 2007 13:44:56 +0300
From: Evgeniy Polyakov <johnpol@....mipt.ru>
To: David Miller <davem@...emloft.net>
Cc: netdev@...r.kernel.org
Subject: [1/1] netlink: no need to crash if table does not exist.
We would already do that on init.
Some things become very confused, when nl_table is not used to store
netlink sockets.
Signed-off-by: Evgeniy Polyakov <johnpol@....mipt.ru>
23ebdcf1f439cde050a63f33897d5b099fe08c95
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c
index 9b69d9b..071e4d7 100644
--- a/net/netlink/af_netlink.c
+++ b/net/netlink/af_netlink.c
@@ -1330,8 +1330,6 @@ netlink_kernel_create(int unit, unsigned int groups,
struct netlink_sock *nlk;
unsigned long *listeners = NULL;
- BUG_ON(!nl_table);
-
if (unit<0 || unit>=MAX_LINKS)
return NULL;
--
Evgeniy Polyakov
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists