Re: [PATCH] blk-cgroup: fix freeing NULL blkg in blkg_create

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

 



On 2/6/23 07:02, Christoph Hellwig wrote:
> new_blkg can be NULL if the caller didn't pass in a pre-allocated blkg.
> Don't try to free it in that case.
> 
> Fixes: 27b642b07a4a ("blk-cgroup: simplify blkg freeing from initialization failure paths")
> Reported-by: Yi Zhang <yi.zhang@xxxxxxxxxx>
> Signed-off-by: Christoph Hellwig <hch@xxxxxx>
> ---

This should fix the issue reported by Yi, it will be great
to get tested by though.

Reviewed-by: Chaitanya Kulkarni <kch@xxxxxxxxxx>

-ck





[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux