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)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 19 Feb 2014 23:52:39 +0000 (18:52 -0500)
commitce37c42919608e96ade3748fe23c3062a0a966c5
tree3f3c73d33866c190274bce89ba9f362016b2cbca
parent024949ec8fc165bfac8eb051e537bc303adb365f
ext4: fix error return from ext4_ext_handle_uninitialized_extents()

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>
Cc: stable@vger.kernel.org
fs/ext4/extents.c