diff --git a/fs/locks.c b/fs/locks.c index 83145d4639a1..425ef3951153 100644 --- a/fs/locks.c +++ b/fs/locks.c @@ -2546,7 +2546,7 @@ int fcntl_setlk(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, files); + locks_remove_posix(filp, ¤t->files); error = -EBADF; } } @@ -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, files); + locks_remove_posix(filp, ¤t->files); error = -EBADF; } }