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

!15627 fs/ntfs3: Fix some memory leaks in an error handling path of 'log_replay()'

parents e138c473 8c094637
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -4096,8 +4096,10 @@ int log_replay(struct ntfs_inode *ni, bool *initialized)
		if (client == LFS_NO_CLIENT_LE) {
			/* Insert "NTFS" client LogFile. */
			client = ra->client_idx[0];
			if (client == LFS_NO_CLIENT_LE)
				return -EINVAL;
			if (client == LFS_NO_CLIENT_LE) {
				err = -EINVAL;
				goto out;
			}

			t16 = le16_to_cpu(client);
			cr = ca + t16;