btrfs-progs/mkfs
Qu Wenruo a00bfc200c btrfs-progs: mkfs: avoid positive return value from cleanup_temp_chunks
Since we're calling btrfs_search_slot() the return value can be
positive.  However we just pass that return value out, causing undefined
return value.

This can cause mkfs to return 1, which indicates something wrong.

Fix it.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2017-11-14 15:59:00 +01:00
..
common.c btrfs-progs: mkfs: Move the tree root creation to own function 2017-09-08 16:15:05 +02:00
common.h btrfs-progs: mkfs: Replace number with enum 2017-09-08 16:15:05 +02:00
main.c btrfs-progs: mkfs: avoid positive return value from cleanup_temp_chunks 2017-11-14 15:59:00 +01:00