提交 792352cb 编写于 作者: D Dan Carpenter 提交者: Jan Kara

udf: fix udf_load_pvoldesc()

There are some missing braces here which means this function never
succeeds.

Fixes: e9d4cf41 ('udf: improve error management in udf_CS0toUTF8()')
Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NJan Kara <jack@suse.cz>
上级 942d702e
...@@ -937,12 +937,13 @@ static int udf_load_pvoldesc(struct super_block *sb, sector_t block) ...@@ -937,12 +937,13 @@ static int udf_load_pvoldesc(struct super_block *sb, sector_t block)
udf_debug("volIdent[] = '%s'\n", UDF_SB(sb)->s_volume_ident); udf_debug("volIdent[] = '%s'\n", UDF_SB(sb)->s_volume_ident);
} }
if (!udf_build_ustr(instr, pvoldesc->volSetIdent, 128)) if (!udf_build_ustr(instr, pvoldesc->volSetIdent, 128)) {
ret = udf_CS0toUTF8(outstr, instr); ret = udf_CS0toUTF8(outstr, instr);
if (ret < 0) if (ret < 0)
goto out_bh; goto out_bh;
udf_debug("volSetIdent[] = '%s'\n", outstr->u_name); udf_debug("volSetIdent[] = '%s'\n", outstr->u_name);
}
ret = 0; ret = 0;
out_bh: out_bh:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册