Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0fd2ba36 authored by Changwoo Min's avatar Changwoo Min Committed by Jan Kara
Browse files

udf: return correct errno for udf_update_inode()



Instead of -ENOMEM, properly return -EIO udf_update_inode()
error, similar/consistent to the rest of filesystems.

Signed-off-by: default avatarChangwoo Min <changwoo.m@gmail.com>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
parent 78c3eb3c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1636,7 +1636,7 @@ static int udf_update_inode(struct inode *inode, int do_sync)
			udf_get_lb_pblock(inode->i_sb, &iinfo->i_location, 0));
	if (!bh) {
		udf_debug("getblk failure\n");
		return -ENOMEM;
		return -EIO;
	}

	lock_buffer(bh);