diff options
author | Fabian Frederick <fabf@skynet.be> | 2015-04-08 21:23:56 +0200 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2015-05-18 11:23:06 +0200 |
commit | 5dce54b71e6185dae07ad12ca17ce30aa64022cd (patch) | |
tree | 999bd96ad66d0aa79657c32ade3cbb843d269a4e | |
parent | 78fc2e694f35d1d027448e5b7641f32719073320 (diff) | |
download | linux-rpi-5dce54b71e6185dae07ad12ca17ce30aa64022cd.tar.gz linux-rpi-5dce54b71e6185dae07ad12ca17ce30aa64022cd.tar.bz2 linux-rpi-5dce54b71e6185dae07ad12ca17ce30aa64022cd.zip |
udf: bug on exotic flag in udf_get_filename()
UDF volume is only mounted with UDF_FLAG_UTF8
or UDF_FLAG_NLS_MAP (see fill udf_fill_super().
BUG() if we have something different in udf_get_filename()
Suggested-by: Jan Kara <jack@suse.cz>
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Jan Kara <jack@suse.cz>
-rw-r--r-- | fs/udf/unicode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/udf/unicode.c b/fs/udf/unicode.c index 658aa14cc474..97b23b0f9713 100644 --- a/fs/udf/unicode.c +++ b/fs/udf/unicode.c @@ -365,7 +365,7 @@ int udf_get_filename(struct super_block *sb, uint8_t *sname, int slen, goto out2; } } else - goto out2; + BUG(); ret = udf_translate_to_linux(dname, dlen, filename->u_name, filename->u_len, |