]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
ext2fs: fix error handling in ext2fs_add_dir_block
authorAndreas Dilger <adilger@whamcloud.com>
Sat, 11 Jun 2011 16:51:21 +0000 (12:51 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 11 Jun 2011 16:51:21 +0000 (12:51 -0400)
commit388b66f727e39474a2160aa0d35402f4821aa8ae
treefa4ef0436d07d896390aed240c769dfbb4853e0e
parent8185ab9f38f0e9cd06feab9d8e59d059bde84bf6
ext2fs: fix error handling in ext2fs_add_dir_block

In ext2fs_add_dir_block() the dblist allocation size was changed to
grow as the number of items in the dblist increases.  However, the
error handling in case of allocation failure wasn't changed to match.

Fix the error case to revert to the old allocation size on failure.

Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/dblist.c