diff options
-rw-r--r-- | fs/ext4/extents.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c index 0cffb59fff46..ce9aa5860569 100644 --- a/fs/ext4/extents.c +++ b/fs/ext4/extents.c | |||
@@ -2373,9 +2373,10 @@ int ext4_ext_get_blocks(handle_t *handle, struct inode *inode, | |||
2373 | ret = ext4_ext_convert_to_initialized(handle, inode, | 2373 | ret = ext4_ext_convert_to_initialized(handle, inode, |
2374 | path, iblock, | 2374 | path, iblock, |
2375 | max_blocks); | 2375 | max_blocks); |
2376 | if (ret <= 0) | 2376 | if (ret <= 0) { |
2377 | err = ret; | ||
2377 | goto out2; | 2378 | goto out2; |
2378 | else | 2379 | } else |
2379 | allocated = ret; | 2380 | allocated = ret; |
2380 | goto outnew; | 2381 | goto outnew; |
2381 | } | 2382 | } |