Merge tag 'wberr-v4.14-1' of git://git.kernel.org/pub/scm/linux/kernel/git/jlayton...
[linux-2.6-microblaze.git] / fs / 9p / vfs_file.c
index 4802d75..03c9e32 100644 (file)
@@ -288,7 +288,7 @@ static int v9fs_file_getlock(struct file *filp, struct file_lock *fl)
                        fl->fl_end = OFFSET_MAX;
                else
                        fl->fl_end = glock.start + glock.length - 1;
-               fl->fl_pid = glock.proc_id;
+               fl->fl_pid = -glock.proc_id;
        }
        kfree(glock.client_id);
        return res;