commit | b091f7fede97cc64f7aaad3eeb37965aebee3082 | [log] [tgz] |
---|---|---|
author | Waiman Long <longman@redhat.com> | Tue Jun 16 11:31:59 2020 -0400 |
committer | David Sterba <dsterba@suse.com> | Tue Jun 16 19:24:03 2020 +0200 |
tree | c73c266d76a14da8d3c1c04fad1473797054adca | |
parent | 5dbb75ed6900048e146247b6325742d92c892548 [diff] |
btrfs: use kfree() in btrfs_ioctl_get_subvol_info() In btrfs_ioctl_get_subvol_info(), there is a classic case where kzalloc() was incorrectly paired with kzfree(). According to David Sterba, there isn't any sensitive information in the subvol_info that needs to be cleared before freeing. So kzfree() isn't really needed, use kfree() instead. Signed-off-by: Waiman Long <longman@redhat.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>