aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 4825c52924bf..a1b0697340ba 100644
--- a/drivers/net/tun.c
+++ b/drivers/net/tun.c
@@ -660,7 +660,7 @@ static ssize_t tun_chr_aio_write(struct kiocb *iocb, const struct iovec *iv,
660 unsigned long count, loff_t pos) 660 unsigned long count, loff_t pos)
661{ 661{
662 struct file *file = iocb->ki_filp; 662 struct file *file = iocb->ki_filp;
663 struct tun_struct *tun = file->private_data; 663 struct tun_struct *tun = tun_get(file);
664 ssize_t result; 664 ssize_t result;
665 665
666 if (!tun) 666 if (!tun)