Re: [PATCH] btrfs: use free_root_extent_buffer to free root

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jun 23, 2020 at 05:40:07PM +0900, Johannes Thumshirn wrote:
> In btrfs_put_root() we're freeing a btrfs_root's 'node' and 'commit_root'
> extent buffers manually via kfree(), while we're using
> free_root_extent_buffers() in the free_root_pointers() function above.
> 
> free_root_extent_buffers() also NULLs the pointers after freeing, which
> mitigates potential double frees.
> 
> Signed-off-by: Johannes Thumshirn <johannes.thumshirn@xxxxxxx>

Added to misc-next, thanks.



[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux