From: Jan Kara Date: Tue, 6 May 2008 16:26:17 +0000 (+0200) Subject: udf: Fix memory corruption when fs mounted with noadinicb option X-Git-Tag: v2.6.26-rc2~34^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9afadc4b1fd25337003832c9a4668f9bd42cdda9;p=pandora-kernel.git udf: Fix memory corruption when fs mounted with noadinicb option When UDF filesystem is mounted with noadinicb mount option, it happens that we extend an empty directory with a block. A code in udf_add_entry() didn't count with this possibility and used uninitialized data leading to memory and filesystem corruption. Add a check whether file already has some extents before operating on them. Signed-off-by: Jan Kara --- Reading git-diff-tree failed