Skip to contentSkip to conversation

UDF possible NULL pointer usage

DISCUSSION Cyrill Gorcunov 1 participant 1 message Mar 18, 2007

lore
Share & tools
lore
#0 lore raw

Hi Ben,

you know the udf_fill_inode() in inode.c does not
check if memory allocation failed:

	UDF_I_DATA(inode) = kmalloc(inode->i_sb->s_blocksize -
	sizeof(struct extendedFileEntry), GFP_KERNEL);

so the question I have is - what kind of handler there should be: just exit out from the function or mark the inode as bad?

Cyrill