diff --git a/fs/locks.c b/fs/locks.c index 51bae6227c25fe409df65ebd1157a608c2ae8075..efe1affe6bed2754f3daf0fdbec37aea27d2be71 100644 --- a/fs/locks.c +++ b/fs/locks.c @@ -819,7 +819,7 @@ static int __posix_lock_file(struct inode *inode, struct file_lock *request, str lock_kernel(); if (request->fl_type != F_UNLCK) { for_each_lock(inode, before) { - struct file_lock *fl = *before; + fl = *before; if (!IS_POSIX(fl)) continue; if (!posix_locks_conflict(request, fl))