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

!11047 filelock: Correct the filelock owner in fcntl_setlk/fcntl_setlk64

parents 31e825c6 33c05595
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2314,7 +2314,7 @@ int fcntl_setlk(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;
		}
	}
@@ -2444,7 +2444,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;
		}
	}