UDF: check for allocated memory for inode data
authorCyrill Gorcunov <gorcunov@gmail.com>
Mon, 16 Jul 2007 06:39:47 +0000 (23:39 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 16 Jul 2007 16:05:41 +0000 (09:05 -0700)
commit647bd61a5f3a51a38c670f91af9d861ad66149a3
treeacadac2740f3a482c6f3472fd0b0e62d158c5df4
parent9c1729db3e6d738f872bcb090212af00473bf666
UDF: check for allocated memory for inode data

This patch adds checking for granted memory while filling up inode data to
prevent possible NULL pointer usage.  If there is not enough memory to fill
inode data we just mark it as "bad".  Also some whitespace cleanup.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Cc: Jan Kara <jack@ucw.cz>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/udf/inode.c