Browse Source

ext4_xattr: fix trying to read EA block even if it is absent

pull/22/head
Kaho Ng 8 years ago
parent
commit
4d530fc1bb
  1. 7
      src/ext4_xattr.c

7
src/ext4_xattr.c

@ -974,6 +974,13 @@ int ext4_xattr_get(struct ext4_inode_ref *inode_ref, uint8_t name_index,
}
} else {
struct ext4_block block;
/* Return ENODATA if there is no EA block */
if (!xattr_block) {
ret = ENODATA;
goto out;
}
block_finder.i = i;
ret = ext4_trans_block_get(fs->bdev, &block, xattr_block);
if (ret != EOK)

Loading…
Cancel
Save