VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Miklos Szeredi <mszeredi@redhat.com> 2017-09-12 16:57:53 +0200 committer: Miklos Szeredi <mszeredi@redhat.com> 2017-09-12 16:57:53 +0200 commit: 5d6d3a301c4e749e04be6fcdcf4cb1ffa8bae524 parent: 569dbb88e80deb68974ef6fdd6a13edb9d686261
Commit Summary:
fuse: allow server to run in different pid_ns
Diffstat:
1 file changed, 0 insertions, 3 deletions
diff --git a/fs/fuse/file.c b/fs/fuse/file.c
index ab60051be6e5..6d8e65cec01a 100644
--- a/fs/fuse/file.c
+++ b/fs/fuse/file.c
@@ -2181,9 +2181,6 @@ static int fuse_setlk(struct file *file, struct file_lock *fl, int flock)
 	if ((fl->fl_flags & FL_CLOSE_POSIX) == FL_CLOSE_POSIX)
 		return 0;
 
-	if (pid && pid_nr == 0)
-		return -EOVERFLOW;
-
 	fuse_lk_fill(&args, file, fl, opcode, pid_nr, flock, &inarg);
 	err = fuse_simple_request(fc, &args);