Nicolas Dichtel
e0ebde0e13
rtnetlink: release net refcnt on error in do_setlink()
...
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>
2014-11-29 21:05:43 -08:00
..
2014-08-07 11:44:18 -07:00
2014-10-15 10:25:04 +10:30
2014-07-15 16:12:48 -07:00
2014-10-07 13:22:11 -04:00
2014-07-16 14:09:34 -07:00
2014-10-07 13:22:11 -04:00
2014-10-14 02:18:24 +02:00
2014-10-02 13:41:57 +03:00
2014-11-26 15:29:01 -05:00
2014-10-14 16:05:45 -04:00
2014-11-13 22:26:34 +03:00
2014-11-29 21:05:43 -08:00
2014-11-16 14:50:52 -05:00
2014-10-18 09:31:37 -07:00
2014-08-22 12:23:11 -07:00
2014-10-01 00:44:04 +10:00
2014-11-06 15:06:28 -05:00
2014-09-05 17:47:02 -07:00
2014-07-11 15:04:40 -07:00
2014-10-05 21:34:39 -04:00
2014-11-26 15:45:04 -05:00
2014-11-25 14:29:18 -05:00
2014-11-20 22:57:03 -05:00
2014-11-02 10:20:26 -08:00
2014-09-10 12:40:10 -07:00
2014-07-15 16:27:00 -07:00
2014-09-19 15:57:15 -04:00
2014-09-28 07:05:16 -07:00
2014-11-18 22:39:16 +01:00
2014-10-08 21:40:54 -04:00
2014-10-31 15:47:21 -04:00
2014-11-25 14:14:51 -05:00
2014-10-09 01:40:05 -04:00
2014-11-12 15:12:06 -05:00
2014-10-17 23:52:54 -04:00
2014-09-24 02:02:24 +02:00
2014-11-20 22:56:13 -05:00
2014-11-24 16:15:36 -05:00
2014-10-06 18:16:30 -04:00
2014-10-18 09:31:37 -07:00
2014-10-09 11:16:15 +02:00
2014-09-07 16:07:25 -07:00
2014-10-12 10:13:55 -04:00
2014-10-29 14:28:01 -04:00
2014-11-11 15:19:11 -05:00
2014-11-19 12:03:20 -05:00
2014-10-21 15:28:15 -04:00
2014-10-07 17:03:14 -04:00
2014-10-07 20:28:44 -04:00
2014-10-27 13:38:15 -04:00
2014-10-30 19:58:30 -04:00
2014-07-29 12:20:22 -07:00
2014-10-27 19:09:59 -04:00
2014-07-12 01:53:30 +02:00
2014-10-11 13:21:34 -04:00