diff options
author | Nicolas Dichtel <nicolas.dichtel@6wind.com> | 2014-11-27 10:16:15 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-12-16 09:34:27 -0800 |
commit | 5ee9f7cf65cd69d61b718eb40a53a9d2e3477827 (patch) | |
tree | f75a44a89562f8529a3467a0d0cbb276f5838775 /net/ipv4 | |
parent | 3e4410bb077de97319cb6d2e6a74e39f9d9a9503 (diff) | |
download | lwn-5ee9f7cf65cd69d61b718eb40a53a9d2e3477827.tar.gz lwn-5ee9f7cf65cd69d61b718eb40a53a9d2e3477827.zip |
rtnetlink: release net refcnt on error in do_setlink()
[ Upstream commit e0ebde0e131b529fd721b24f62872def5ec3718c ]
rtnl_link_get_net() holds a reference on the 'struct net', we need to release
it in case of error.
CC: Eric W. Biederman <ebiederm@xmission.com>
Fixes: b51642f6d77b ("net: Enable a userns root rtnl calls that are safe for unprivilged users")
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Reviewed-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/ipv4')
0 files changed, 0 insertions, 0 deletions