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

!12920 ocfs2: fix possible null-ptr-deref in ocfs2_set_buffer_uptodate

parents 5fc69c64 25b42b75
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -390,6 +390,7 @@ int ocfs2_read_blocks(struct ocfs2_caching_info *ci, u64 block, int nr,
		/* Always set the buffer in the cache, even if it was
		 * a forced read, or read-ahead which hasn't yet
		 * completed. */
		if (bh)
			ocfs2_set_buffer_uptodate(ci, bh);
	}
	ocfs2_metadata_cache_io_unlock(ci);