diff options
| author | Dan Carpenter <dan.carpenter@oracle.com> | 2015-05-20 04:13:15 -0400 |
|---|---|---|
| committer | Jan Kara <jack@suse.cz> | 2015-05-21 09:19:15 -0400 |
| commit | 792352cb160e654f0b64182550ee702a790fe4d0 (patch) | |
| tree | 90d7b78c40b8d536185c335f6f9f325eaeab9e55 /fs/udf | |
| parent | 942d702e719607da308c00af1b63804bf88cb030 (diff) | |
udf: fix udf_load_pvoldesc()
There are some missing braces here which means this function never
succeeds.
Fixes: e9d4cf411f75 ('udf: improve error management in udf_CS0toUTF8()')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/udf')
| -rw-r--r-- | fs/udf/super.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/udf/super.c b/fs/udf/super.c index c6a8f5f79443..b96f190bc567 100644 --- a/fs/udf/super.c +++ b/fs/udf/super.c | |||
| @@ -937,12 +937,13 @@ static int udf_load_pvoldesc(struct super_block *sb, sector_t block) | |||
| 937 | udf_debug("volIdent[] = '%s'\n", UDF_SB(sb)->s_volume_ident); | 937 | udf_debug("volIdent[] = '%s'\n", UDF_SB(sb)->s_volume_ident); |
| 938 | } | 938 | } |
| 939 | 939 | ||
| 940 | if (!udf_build_ustr(instr, pvoldesc->volSetIdent, 128)) | 940 | if (!udf_build_ustr(instr, pvoldesc->volSetIdent, 128)) { |
| 941 | ret = udf_CS0toUTF8(outstr, instr); | 941 | ret = udf_CS0toUTF8(outstr, instr); |
| 942 | if (ret < 0) | 942 | if (ret < 0) |
| 943 | goto out_bh; | 943 | goto out_bh; |
| 944 | 944 | ||
| 945 | udf_debug("volSetIdent[] = '%s'\n", outstr->u_name); | 945 | udf_debug("volSetIdent[] = '%s'\n", outstr->u_name); |
| 946 | } | ||
| 946 | 947 | ||
| 947 | ret = 0; | 948 | ret = 0; |
| 948 | out_bh: | 949 | out_bh: |
