Skip to content

Commit cdb416b

Browse files
committed
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>
1 parent 87b3197 commit cdb416b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmds/rescue.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ static int clear_uuid_tree(struct btrfs_fs_info *fs_info)
352352
goto out;
353353
free_extent_buffer(uuid_root->node);
354354
free_extent_buffer(uuid_root->commit_root);
355-
kfree(uuid_root);
355+
free(uuid_root);
356356
out:
357357
if (ret < 0)
358358
btrfs_abort_transaction(trans, ret);

0 commit comments

Comments
 (0)