From: Fabian Frederick Date: Wed, 8 Apr 2015 19:23:56 +0000 (+0200) Subject: udf: bug on exotic flag in udf_get_filename() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5dce54b71e6185dae07ad12ca17ce30aa64022cd;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Fabian Frederick Signed-off-by: Jan Kara --- 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,