ext4: error handling fix in ext4_ext_convert_to_initialized()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 26 Oct 2011 07:42:36 +0000 (03:42 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 26 Oct 2011 07:42:36 +0000 (03:42 -0400)
commitf85b287a01237857a50c93868231f7e831581a27
tree370cc4ce183e6321192ddd60b2a1e056932a235d
parent665436175c3ca9d35f135e1ba6bdd63745cff08a
ext4: error handling fix in ext4_ext_convert_to_initialized()

When allocated is unsigned it breaks the error handling at the end
of the function when we call:
allocated = ext4_split_extent(...);
if (allocated < 0)
err = allocated;

I've made it a signed int instead of unsigned.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/extents.c