Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 166240
b: refs/heads/master
c: 36989b9
h: refs/heads/master
v: v3
  • Loading branch information
Kusanagi Kouichi authored and David S. Miller committed Sep 22, 2009
1 parent 0fb9830 commit d944f6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9cc4085585a011179caf86a6408225626f6c2263
refs/heads/master: 36989b90879c785f95b877bdcf65a2527dadd893
4 changes: 1 addition & 3 deletions trunk/drivers/net/tun.c
Original file line number Diff line number Diff line change
Expand Up @@ -946,8 +946,6 @@ static int tun_set_iff(struct net *net, struct file *file, struct ifreq *ifr)
char *name;
unsigned long flags = 0;

err = -EINVAL;

if (!capable(CAP_NET_ADMIN))
return -EPERM;
err = security_tun_dev_create();
Expand All @@ -964,7 +962,7 @@ static int tun_set_iff(struct net *net, struct file *file, struct ifreq *ifr)
flags |= TUN_TAP_DEV;
name = "tap%d";
} else
goto failed;
return -EINVAL;

if (*ifr->ifr_name)
name = ifr->ifr_name;
Expand Down

0 comments on commit d944f6a

Please sign in to comment.