diff --git a/fs/locks.c b/fs/locks.c index 5549b5a54ffd7a264ae5549718d6b36bd0a1e35e..d06e4b8e7ee69b9001456b579bcad7b78a2e2e18 100644 --- a/fs/locks.c +++ b/fs/locks.c @@ -2676,7 +2676,7 @@ int fcntl_setlk64(unsigned int fd, struct file *filp, unsigned int cmd, f = fcheck(fd); spin_unlock(¤t->files->file_lock); if (f != filp) { - locks_remove_posix(filp, ¤t->files); + locks_remove_posix(filp, current->files); error = -EBADF; } }