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

udf: Fix error paths in udf_new_inode()



I case we failed to allocate memory for inode when creating it, we did not
properly free block already allocated for this inode. Move memory allocation
before the block allocation which fixes this issue (thanks for the idea go to
Ingo Oeser <ioe-lkml@rameria.de>). Also remove a few superfluous
initializations already done in udf_alloc_inode().

Reviewed-by: default avatarIngo Oeser <ioe-lkml@rameria.de>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
parent db0badc5
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