ext4: fix error return from ext4_ext_handle_uninitialized_extents()
authorEric Whitney <enwlinux@gmail.com>
Wed, 19 Feb 2014 23:52:39 +0000 (18:52 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 27 Apr 2014 00:19:05 +0000 (17:19 -0700)
commitdc5af0f7e234498decf671185ee9224bd1e15657
tree1d37ef397f7955136dc7cea1e371b7877e49c3d3
parent2891d0f1023283a2d931c91193ff3f3696be7780
ext4: fix error return from ext4_ext_handle_uninitialized_extents()

commit ce37c42919608e96ade3748fe23c3062a0a966c5 upstream.

Commit 3779473246 breaks the return of error codes from
ext4_ext_handle_uninitialized_extents() in ext4_ext_map_blocks().  A
portion of the patch assigns that function's signed integer return
value to an unsigned int.  Consequently, negatively valued error codes
are lost and can be treated as a bogus allocated block count.

Signed-off-by: Eric Whitney <enwlinux@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/extents.c