Merge branch 'siginfo-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebieder...
[linux-2.6-block.git] / drivers / net / tun.c
index 2bbefe828670135d85ae8b4cdb9e537e27301be8..ebd07ad82431ec78c3801999fdc986188216655a 100644 (file)
@@ -3217,7 +3217,7 @@ static int tun_chr_fasync(int fd, struct file *file, int on)
                goto out;
 
        if (on) {
-               __f_setown(file, task_pid(current), PIDTYPE_PID, 0);
+               __f_setown(file, task_pid(current), PIDTYPE_TGID, 0);
                tfile->flags |= TUN_FASYNC;
        } else
                tfile->flags &= ~TUN_FASYNC;