Commit 84167d19 authored by Stefan Behrens's avatar Stefan Behrens Committed by Chris Mason

Btrfs: Fix wrong error handling code

gcc says "warning: comparison of unsigned expression >= 0 is always
true" because i is an unsigned long. And gcc is right this time.
Signed-off-by: default avatarStefan Behrens <sbehrens@giantdisaster.de>
parent 661bec6b
...@@ -4104,8 +4104,8 @@ struct extent_buffer *alloc_dummy_extent_buffer(u64 start, unsigned long len) ...@@ -4104,8 +4104,8 @@ struct extent_buffer *alloc_dummy_extent_buffer(u64 start, unsigned long len)
return eb; return eb;
err: err:
for (i--; i >= 0; i--) for (; i > 0; i--)
__free_page(eb->pages[i]); __free_page(eb->pages[i - 1]);
__free_extent_buffer(eb); __free_extent_buffer(eb);
return NULL; return NULL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment