btrfs-progs: fi du: improved error handling in mark_inode_seen

The callchain handles errors, don't crash on unexpected condition.

Signed-off-by: David Sterba <dsterba@suse.com>
master
David Sterba 2016-09-07 15:09:14 +02:00
parent 44af5de2f3
commit 4a16608150
1 changed files with 1 additions and 1 deletions

View File

@ -228,7 +228,7 @@ static int mark_inode_seen(u64 ino, u64 subvol)
else if (cmp > 0)
p = &(*p)->rb_right;
else
BUG();
return -EEXIST;
}
si = calloc(1, sizeof(*si));