udf: Fix BUG on corrupted inode
authorJan Kara <jack@suse.cz>
Wed, 12 Dec 2018 13:29:20 +0000 (14:29 +0100)
committerJan Kara <jack@suse.cz>
Wed, 12 Dec 2018 14:48:49 +0000 (15:48 +0100)
commitd288d95842f1503414b7eebce3773bac3390457e
treecf00bbda980da51717881fae02b41854c57a0bac
parent3e159b9553e4024cbdaa25bb8059f79f47c26925
udf: Fix BUG on corrupted inode

When inode is corrupted so that extent type is invalid, some functions
(such as udf_truncate_extents()) will just BUG. Check that extent type
is valid when loading the inode to memory.

Reported-by: Anatoly Trosinenko <anatoly.trosinenko@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/udf/inode.c