Skip to content

Commit

Permalink
[NETNS]: Make the __addrconf_sysctl_register return an error
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Pavel Emelyanov authored and David S. Miller committed Jan 28, 2008
1 parent 408c476 commit 9589731
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions net/ipv6/addrconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 9589731

Please sign in to comment.