summaryrefslogtreecommitdiffstats
path: root/drivers/sn
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2008-08-18 13:44:48 +0200
committerJan Kara <jack@suse.cz>2008-08-19 11:05:05 +0200
commit97e1cfb08616987878f91a46cefdd7fc5fa3dba1 (patch)
tree58442dfca90b9184a09c2b1ab1d7252a4100e296 /drivers/sn
parentdb0badc58e948b810c7a75cfcc48845e2949ee37 (diff)
downloadblackbird-op-linux-97e1cfb08616987878f91a46cefdd7fc5fa3dba1.tar.gz
blackbird-op-linux-97e1cfb08616987878f91a46cefdd7fc5fa3dba1.zip
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: Ingo Oeser <ioe-lkml@rameria.de> Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'drivers/sn')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud