aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/tun.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/tun.c')
-rw-r--r--drivers/net/tun.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/tun.c b/drivers/net/tun.c
index 2834a01bae24..e572ecc09a44 100644
--- a/drivers/net/tun.c
+++ b/drivers/net/tun.c
@@ -1365,7 +1365,7 @@ static int tun_chr_close(struct inode *inode, struct file *file)
1365 1365
1366 __tun_detach(tun); 1366 __tun_detach(tun);
1367 1367
1368 /* If desireable, unregister the netdevice. */ 1368 /* If desirable, unregister the netdevice. */
1369 if (!(tun->flags & TUN_PERSIST)) { 1369 if (!(tun->flags & TUN_PERSIST)) {
1370 rtnl_lock(); 1370 rtnl_lock();
1371 if (dev->reg_state == NETREG_REGISTERED) 1371 if (dev->reg_state == NETREG_REGISTERED)