Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 369882
b: refs/heads/master
c: e8dbad6
h: refs/heads/master
v: v3
  • Loading branch information
Jason Wang authored and David S. Miller committed Apr 25, 2013
1 parent 7dba781 commit 11b7545
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 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: 5ffedc6ed3d066f5c0d2c2106f9081170b3d24fa
refs/heads/master: e8dbad66ef56074eadb41ed5998acd2320447018
8 changes: 6 additions & 2 deletions trunk/drivers/net/tun.c
Original file line number Diff line number Diff line change
Expand Up @@ -1593,8 +1593,12 @@ static int tun_set_iff(struct net *net, struct file *file, struct ifreq *ifr)
return err;

if (tun->flags & TUN_TAP_MQ &&
(tun->numqueues + tun->numdisabled > 1))
return -EBUSY;
(tun->numqueues + tun->numdisabled > 1)) {
/* One or more queue has already been attached, no need
* to initialize the device again.
*/
return 0;
}
}
else {
char *name;
Expand Down

0 comments on commit 11b7545

Please sign in to comment.