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 bc0face01d25..151a2e10e4f3 100644
--- a/drivers/net/tun.c
+++ b/drivers/net/tun.c
@@ -697,7 +697,7 @@ static int tun_chr_fasync(int fd, struct file *file, int on)
697 return ret; 697 return ret;
698 698
699 if (on) { 699 if (on) {
700 ret = f_setown(file, current->pid, 0); 700 ret = __f_setown(file, task_pid(current), PIDTYPE_PID, 0);
701 if (ret) 701 if (ret)
702 return ret; 702 return ret;
703 tun->flags |= TUN_FASYNC; 703 tun->flags |= TUN_FASYNC;