lkml.org 
[lkml]   [2020]   [Apr]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 1/2] mm, treewide: Rename kzfree() to kfree_sensitive()
    On Mon, Apr 13, 2020 at 05:15:49PM -0400, Waiman Long wrote:
    > fs/btrfs/ioctl.c | 2 +-


    > diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c
    > index 40b729dce91c..eab3f8510426 100644
    > --- a/fs/btrfs/ioctl.c
    > +++ b/fs/btrfs/ioctl.c
    > @@ -2691,7 +2691,7 @@ static int btrfs_ioctl_get_subvol_info(struct file *file, void __user *argp)
    > btrfs_put_root(root);
    > out_free:
    > btrfs_free_path(path);
    > - kzfree(subvol_info);
    > + kfree_sensitive(subvol_info);

    This is not in a sensitive context so please switch it to plain kfree.
    With that you have my acked-by. Thanks.

    \
     
     \ /
      Last update: 2020-04-14 14:50    [W:4.171 / U:0.016 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site