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

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
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment