ref: 18ddc30b89ea8ced586e8ff8c09c46613f1a397c
parent: 2e93de2e29c061c7cf7f0fc9562a00d3dc16b561
author: Kaho Ng <ngkaho1234@gmail.com>
date: Wed May 11 20:22:22 EDT 2016
ext4_xattr: fix freeing inode_ref's buffer when failed to initialize.
--- a/src/ext4_xattr.c
+++ b/src/ext4_xattr.c
@@ -856,7 +856,7 @@
if (rc != EOK) {
ext4_xattr_purge_items(ref);
if (xattr_block)
- ext4_block_set(fs->bdev, &inode_ref->block);
+ ext4_block_set(fs->bdev, &ref->block);
ref->block_loaded = false;
return rc;