summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fs/dnotify.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/dnotify.c b/fs/dnotify.c
index 55bbdef5a956..642cbe1920b2 100644
--- a/fs/dnotify.c
+++ b/fs/dnotify.c
@@ -94,7 +94,7 @@ int fcntl_dirnotify(int fd, struct file *filp, unsigned long arg)
prev = &odn->dn_next;
}
- error = f_setown(filp, current->pid, 1);
+ error = f_setown(filp, current->tgid, 1);
if (error)
goto out_free;