Unverified Commit 14710d3c authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!10939 filelock: Correct the file lock owner in fcntl_setlk64

parents edf8bf21 931116a0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2676,7 +2676,7 @@ int fcntl_setlk64(unsigned int fd, struct file *filp, unsigned int cmd,
		f = fcheck(fd);
		spin_unlock(&current->files->file_lock);
		if (f != filp) {
			locks_remove_posix(filp, &current->files);
			locks_remove_posix(filp, current->files);
			error = -EBADF;
		}
	}