diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2007-12-07 07:52:16 +0100 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-12-07 10:07:55 +0100 |
commit | e35de02615f97b785dc6f73cba421cea06bcbd10 (patch) | |
tree | f8568278e81ad7e6176df1a7d1532076956f95a0 /net/8021q/vlan.c | |
parent | [SCTP]: Fix the bind_addr info during migration. (diff) | |
download | linux-e35de02615f97b785dc6f73cba421cea06bcbd10.tar.xz linux-e35de02615f97b785dc6f73cba421cea06bcbd10.zip |
[VLAN]: Lost rtnl_unlock() in vlan_ioctl()
The SET_VLAN_NAME_TYPE_CMD command w/o CAP_NET_ADMIN capability
doesn't release the rtnl lock.
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/8021q/vlan.c')
-rw-r--r-- | net/8021q/vlan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/8021q/vlan.c b/net/8021q/vlan.c index 6567213959cb..5b183156307a 100644 --- a/net/8021q/vlan.c +++ b/net/8021q/vlan.c @@ -776,7 +776,7 @@ static int vlan_ioctl_handler(struct net *net, void __user *arg) case SET_VLAN_NAME_TYPE_CMD: err = -EPERM; if (!capable(CAP_NET_ADMIN)) - return -EPERM; + break; if ((args.u.name_type >= 0) && (args.u.name_type < VLAN_NAME_TYPE_HIGHEST)) { vlan_name_type = args.u.name_type; |