From: Pablo Neira <pablo@eurodev.net>
To: netdev@oss.sgi.com, "David S. Miller" <davem@redhat.com>
Subject: [NETLINK] hlist initilization
Date: Fri, 24 Sep 2004 03:05:56 +0200 [thread overview]
Message-ID: <415372F4.1010400@eurodev.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 193 bytes --]
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 <pablo@eurodev.net>
regards,
Pablo
[-- Attachment #2: hlist-initialize.patch --]
[-- Type: text/x-patch, Size: 459 bytes --]
===== 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");
next reply other threads:[~2004-09-24 1:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-24 1:05 Pablo Neira [this message]
2004-09-24 1:16 ` [NETLINK] hlist initilization David S. Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=415372F4.1010400@eurodev.net \
--to=pablo@eurodev.net \
--cc=davem@redhat.com \
--cc=netdev@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).