mirror of
https://github.com/torvalds/linux.git
synced 2026-11-24 15:33:28 +00:00
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: [email protected] Signed-off-by: Jan Kara <[email protected]>