Skip to content
Commit f05f2429 authored by Jan Kara's avatar Jan Kara
Browse files

udf: Fix error handling in udf_new_inode()



When memory allocation of iinfo or block allocation fails, already
allocated struct udf_inode_info gets freed with iput() and
udf_evict_inode() may look at inode fields which are not properly
initialized. Fix it by marking inode bad before dropping reference to it
in udf_new_inode().

Reported-by: default avatar <syzbot+9ca499bb57a2b9e4c652@syzkaller.appspotmail.com>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
parent b831281b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment