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