• Jan Kara's avatar
    udf: Fix error paths in udf_new_inode() · 97e1cfb0
    Jan Kara authored
    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>
    97e1cfb0
ialloc.c 4.14 KB