Re: [PATCH] mm/memcg: check kzalloc_node() return in memcg1_init()

Hongfu Li <[email protected]> Wed, 22 Jul 2026 14:18:26 +0800
Newsgroups org.kernel.vger.cgroups,org.kernel.vger.linux-kernel,org.kvack.linux-mm
Message-ID <[email protected]>
> >  		rtpn = kzalloc_node(sizeof(*rtpn), GFP_KERNEL, node);
> > +		if (!rtpn)
> > +			continue;
> >  
> >  		rtpn->rb_root = RB_ROOT;
> >  		rtpn->rb_rightmost = NULL;
> 
> Thanks.  We assume that mamory allocations cannot fail within __init
> code.  Because if they do, the kernel has some ghastly problem and it
> cannot possibly run.

Understood, thanks for the clarification. I'll drop this patch.

Best regards,
Hongfu