| To: | YOSHIFUJI Hideaki / ____________ <yoshfuji@xxxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH] IPV6: add missing sentinel for addrconf procfs |
| From: | Stephen Hemminger <shemminger@xxxxxxxx> |
| Date: | Tue, 20 Jan 2004 10:48:20 -0800 |
| Cc: | davem@xxxxxxxxxx, yoshfuji@xxxxxxxxxxxxxx, netdev@xxxxxxxxxxx |
| In-reply-to: | <20040120.094223.76534381.yoshfuji@linux-ipv6.org> |
| Organization: | Open Source Development Lab |
| References: | <20040120.094223.76534381.yoshfuji@linux-ipv6.org> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
On Tue, 20 Jan 2004 09:42:23 +0900 (JST)
YOSHIFUJI Hideaki / ____________ <yoshfuji@xxxxxxxxxxxxxx> wrote:
> Sorry, I forgot to increase the number of members in the array and
> that the sentinel was removed.
> So, add missing sentinel explicitly.
How about adding all them explicitly to prevent future errors?
diff -Nru a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c
--- a/net/ipv6/addrconf.c Tue Jan 20 10:51:20 2004
+++ b/net/ipv6/addrconf.c Tue Jan 20 10:51:20 2004
@@ -3191,6 +3191,9 @@
.mode = 0555,
.child = addrconf_sysctl.addrconf_vars,
},
+ {
+ .ctl_name = 0, /* sentinel */
+ }
},
.addrconf_conf_dir = {
{
@@ -3199,6 +3202,9 @@
.mode = 0555,
.child = addrconf_sysctl.addrconf_dev,
},
+ {
+ .ctl_name = 0, /* sentinel */
+ }
},
.addrconf_proto_dir = {
{
@@ -3207,6 +3213,9 @@
.mode = 0555,
.child =
addrconf_sysctl.addrconf_conf_dir,
},
+ {
+ .ctl_name = 0, /* sentinel */
+ }
},
.addrconf_root_dir = {
{
@@ -3215,6 +3224,9 @@
.mode = 0555,
.child =
addrconf_sysctl.addrconf_proto_dir,
},
+ {
+ .ctl_name = 0, /* sentinel */
+ }
},
};
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PROBLEM] r8169 deadlocks, Srihari Vijayaraghavan |
|---|---|
| Next by Date: | Re: [PATCH 2.6.1] Net device error logging, Rask Ingemann Lambertsen |
| Previous by Thread: | Re: [PATCH] IPV6: add missing sentinel for addrconf procfs, David S. Miller |
| Next by Thread: | Re: [PATCH] IPV6: add missing sentinel for addrconf procfs, YOSHIFUJI Hideaki / 吉藤英明 |
| Indexes: | [Date] [Thread] [Top] [All Lists] |