aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/tun.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/tun.c b/drivers/net/tun.c
index 46339f6bcd00..038c1ef94d2e 100644
--- a/drivers/net/tun.c
+++ b/drivers/net/tun.c
@@ -529,9 +529,13 @@ static int tun_set_iff(struct file *file, struct ifreq *ifr)
529 529
530 if (ifr->ifr_flags & IFF_NO_PI) 530 if (ifr->ifr_flags & IFF_NO_PI)
531 tun->flags |= TUN_NO_PI; 531 tun->flags |= TUN_NO_PI;
532 else
533 tun->flags &= ~TUN_NO_PI;
532 534
533 if (ifr->ifr_flags & IFF_ONE_QUEUE) 535 if (ifr->ifr_flags & IFF_ONE_QUEUE)
534 tun->flags |= TUN_ONE_QUEUE; 536 tun->flags |= TUN_ONE_QUEUE;
537 else
538 tun->flags &= ~TUN_ONE_QUEUE;
535 539
536 file->private_data = tun; 540 file->private_data = tun;
537 tun->attached = 1; 541 tun->attached = 1;