mirror of
https://github.com/kdave/btrfs-progs
synced 2025-02-16 09:46:55 +00:00
btrfs-progs: rescue: replace kfree by free in clear_uuid_tree
The kmalloc/kfree helpers should not be used in code not related to kernel. Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
87b3197d81
commit
cdb416b72e
@ -352,7 +352,7 @@ static int clear_uuid_tree(struct btrfs_fs_info *fs_info)
|
||||
goto out;
|
||||
free_extent_buffer(uuid_root->node);
|
||||
free_extent_buffer(uuid_root->commit_root);
|
||||
kfree(uuid_root);
|
||||
free(uuid_root);
|
||||
out:
|
||||
if (ret < 0)
|
||||
btrfs_abort_transaction(trans, ret);
|
||||
|
Loading…
Reference in New Issue
Block a user