Re: [PATCH] mm/memcg: check kzalloc_node() return in memcg1_init()
From: Hongfu Li
Date: Wed Jul 22 2026 - 02:19:20 EST
> > 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