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

!10383 filelock: fix potential use-after-free in posix_lock_inode

parents 39d17121 592950ac
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1337,9 +1337,9 @@ static int posix_lock_inode(struct inode *inode, struct file_lock *request,
		locks_wake_up_blocks(left);
	}
 out:
	trace_posix_lock_inode(inode, request, error);
	spin_unlock(&ctx->flc_lock);
	percpu_up_read(&file_rwsem);
	trace_posix_lock_inode(inode, request, error);
	/*
	 * Free any unused locks.
	 */