aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/locks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/locks.c b/fs/locks.c
index aed4a957d232..314135ad820b 100644
--- a/fs/locks.c
+++ b/fs/locks.c
@@ -465,7 +465,7 @@ static int lease_init(struct file *filp, long type, struct file_lock *fl)
465 if (assign_type(fl, type) != 0) 465 if (assign_type(fl, type) != 0)
466 return -EINVAL; 466 return -EINVAL;
467 467
468 fl->fl_owner = current->files; 468 fl->fl_owner = filp;
469 fl->fl_pid = current->tgid; 469 fl->fl_pid = current->tgid;
470 470
471 fl->fl_file = filp; 471 fl->fl_file = filp;