]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[NETNS]: Make the __addrconf_sysctl_register return an error
authorPavel Emelyanov <xemul@openvz.org>
Fri, 11 Jan 2008 01:41:45 +0000 (17:41 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 23:01:38 +0000 (15:01 -0800)
This error code will be needed to abort the namespace
creation if needed.

Probably, this is to be checked when a new device is
created (currently it is ignored).

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/addrconf.c

index 27b35ddeeabf5d39490a344db2ff71b4cff68efa..18d43349013e724298b6171c1dd509fd1f336bb1 100644 (file)
@@ -4044,7 +4044,7 @@ static struct addrconf_sysctl_table
        },
 };
 
-static void __addrconf_sysctl_register(char *dev_name, int ctl_name,
+static int __addrconf_sysctl_register(char *dev_name, int ctl_name,
                struct inet6_dev *idev, struct ipv6_devconf *p)
 {
        int i;
@@ -4088,14 +4088,14 @@ static void __addrconf_sysctl_register(char *dev_name, int ctl_name,
                goto free_procname;
 
        p->sysctl = t;
-       return;
+       return 0;
 
 free_procname:
        kfree(t->dev_name);
 free:
        kfree(t);
 out:
-       return;
+       return -ENOBUFS;
 }
 
 static void __addrconf_sysctl_unregister(struct ipv6_devconf *p)