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

!9545 ext4: fix mb_cache_entry's e_refcnt leak in ext4_xattr_block_cache_find()

parents c91d8ba4 25060f16
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -3072,8 +3072,10 @@ ext4_xattr_block_cache_find(struct inode *inode,

		bh = ext4_sb_bread(inode->i_sb, ce->e_value, REQ_PRIO);
		if (IS_ERR(bh)) {
			if (PTR_ERR(bh) == -ENOMEM)
			if (PTR_ERR(bh) == -ENOMEM) {
				mb_cache_entry_put(ea_block_cache, ce);
				return NULL;
			}
			bh = NULL;
			EXT4_ERROR_INODE(inode, "block %lu read error",
					 (unsigned long)ce->e_value);