udf: bug on exotic flag in udf_get_filename()
authorFabian Frederick <fabf@skynet.be>
Wed, 8 Apr 2015 19:23:56 +0000 (21:23 +0200)
committerJan Kara <jack@suse.cz>
Mon, 18 May 2015 09:23:06 +0000 (11:23 +0200)
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>
fs/udf/unicode.c

index 658aa14cc474733429c06338a6017be995b6a217..97b23b0f97138995ecec73177ea3850ae0fcfc17 100644 (file)
@@ -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,