ext4: fix error handling in ext4_ind_get_blocks()
commit648d9cddf46454ef6aad9f8faf1dd051543647dd
authorJan Kara <jack@suse.cz>
Mon, 23 Nov 2009 12:24:48 +0000 (23 07:24 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 14 Dec 2009 16:07:41 +0000 (14 08:07 -0800)
treedf84b583fccf77b34f8a388577a87eb139952bce
parent84d77b74f7ce2e4937b18864fe6d033b29831918
ext4: fix error handling in ext4_ind_get_blocks()

(cherry picked from commit 2bba702d4f88d7b010ec37e2527b552588404ae7)

When an error happened in ext4_splice_branch we failed to notice that
in ext4_ind_get_blocks and mapped the buffer anyway. Fix the problem
by checking for error properly.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/ext4/inode.c