diff --git a/fs/ext4/xattr.c b/fs/ext4/xattr.c index abb644b169cbc731cbb12e4599139c8b7d7f3d6d..daef34f8bd21df29d37b3f96fc386f76e3a283da 100644 --- a/fs/ext4/xattr.c +++ b/fs/ext4/xattr.c @@ -3070,8 +3070,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);