Subject: [NETLINK] hlist initilization

From: Pablo Neira <[email-masked]>
Date: Fri, 24 Sep 2004 03:05:56 +0200

Hi Davem,

This patch adds proper initialization for hlist. It applies to 
af_netlink.c with the workqueue patch reverted.

Signed-off-by: Pablo Neira Ayuso <[email-masked]>

regards,
Pablo
===== net/netlink/af_netlink.c 1.55 vs edited =====
--- 1.55/net/netlink/af_netlink.c	Thu Sep 23 20:27:46 2004
+++ edited/net/netlink/af_netlink.c	Sat Oct 23 19:09:17 2004
@@ -1191,6 +1191,10 @@
 static int __init netlink_proto_init(void)
 {
 	struct sk_buff *dummy_skb;
+	int i;
+
+	for(i=0; i<MAX_LINKS; i++)
+		INIT_HLIST_HEAD(&nl_table[i]);
 
 	if (sizeof(struct netlink_skb_parms) > sizeof(dummy_skb->cb)) {
 		printk(KERN_CRIT "netlink_init: panic\n");