Re: [PATCH] fs/btrfs: init csum_list before possible free

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

 



On Tue, Feb 19, 2019 at 02:56:43AM +0000, Dan Robertson wrote:
> The scrub_ctx csum_list member must be initialized before
> scrub_free_ctx is called. If the csum_list is not initialized
> beforehand, the list_empty call in scrub_free_csums will result
> in a null deref.
> 
> Signed-off-by: Dan Robertson <dan@xxxxxxxxxxxxxxx>

Reviewed-by: David Sterba <dsterba@xxxxxxxx>

Thanks, it's been there since the first merge of scrub, but hard to hit.



[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