From: Jan Kara Date: Thu, 30 Oct 2014 14:53:17 +0000 (-0400) Subject: ext4: bail out from make_indexed_dir() on first error X-Git-Tag: omap-for-v3.19/fixes-not-urgent-part1~23^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6050d47adcadbb53582434d919ed7f038d936712;p=pandora-kernel.git ext4: bail out from make_indexed_dir() on first error When ext4_handle_dirty_dx_node() or ext4_handle_dirty_dirent_node() fail, there's really something wrong with the fs and there's no point in continuing further. Just return error from make_indexed_dir() in that case. Also initialize frames array so that if we return early due to error, dx_release() doesn't try to dereference uninitialized memory (which could happen also due to error in do_split()). Coverity-id: 741300 Signed-off-by: Jan Kara Signed-off-by: Theodore Ts'o Cc: stable@vger.kernel.org --- Reading git-diff-tree failed