]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
[IPV6] ADDRCONF: Fix array size for sysctls.
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Mon, 24 Mar 2008 15:25:11 +0000 (00:25 +0900)
committerYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Fri, 4 Apr 2008 01:44:41 +0000 (10:44 +0900)
We have been using __NET_IPV6_MAX for adjusting the size of array
for sysctl table, but it does not work any longer because of the
deprecation of NET_IPV6_xxx constants.  Let's use DEVCONF_MAX
instead.

Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
net/ipv6/addrconf.c

index 87f688857adea7bf5f4ee78725eebfc90df83531..11037615bc73270d5a2d87da71bec1c5436aa234 100644 (file)
@@ -3877,7 +3877,7 @@ static int addrconf_sysctl_forward_strategy(ctl_table *table,
 static struct addrconf_sysctl_table
 {
        struct ctl_table_header *sysctl_header;
-       ctl_table addrconf_vars[__NET_IPV6_MAX];
+       ctl_table addrconf_vars[DEVCONF_MAX+1];
        char *dev_name;
 } addrconf_sysctl __read_mostly = {
        .sysctl_header = NULL,