Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 376631
b: refs/heads/master
c: 8e6d91a
h: refs/heads/master
i:
  376629: 067f906
  376627: a851d88
  376623: c510750
v: v3
  • Loading branch information
Jason Wang authored and David S. Miller committed May 29, 2013
1 parent 39854ad commit 08f3d5c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 456db6a4d495f40777da6f1f32f62f13026f52db
refs/heads/master: 8e6d91ae0917bf934ed86411148f79d904728d51
4 changes: 4 additions & 0 deletions trunk/drivers/net/tun.c
Original file line number Diff line number Diff line change
Expand Up @@ -1585,6 +1585,10 @@ static int tun_set_iff(struct net *net, struct file *file, struct ifreq *ifr)
else
return -EINVAL;

if (!!(ifr->ifr_flags & IFF_MULTI_QUEUE) !=
!!(tun->flags & TUN_TAP_MQ))
return -EINVAL;

if (tun_not_capable(tun))
return -EPERM;
err = security_tun_dev_open(tun->security);
Expand Down

0 comments on commit 08f3d5c

Please sign in to comment.