]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0e98fbaefa29adf1942122eb6c7016a756498889
tree3f3c73d33866c190274bce89ba9f362016b2cbca
parent6314beeb6b9ddf589f4782a45980612f32c73148
ext4: fix error return from ext4_ext_handle_uninitialized_extents()

Commit d7047e8c23 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