Commit:     9589731220edfebeb6a05c52d0838a99dee20893
Parent:     408c4768cd0843f43a13a442c76215dd9cadf23d
Author:     Pavel Emelyanov <[EMAIL PROTECTED]>
AuthorDate: Thu Jan 10 17:41:45 2008 -0800
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Mon Jan 28 15:01:38 2008 -0800

    [NETNS]: Make the __addrconf_sysctl_register return an error
    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 <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
 net/ipv6/addrconf.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c
index 27b35dd..18d4334 100644
--- a/net/ipv6/addrconf.c
+++ b/net/ipv6/addrconf.c
@@ -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;
-       return;
+       return -ENOBUFS;
 static void __addrconf_sysctl_unregister(struct ipv6_devconf *p)
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to