Re: [PATCH v5 2/3] cxl/core/region: move dax region device logic into region_dax.c

From: Dan Williams

Date: Sat Apr 11 2026 - 13:40:49 EST


Gregory Price wrote:
> On Fri, Apr 10, 2026 at 05:02:00PM -0700, Anisa Su wrote:
> > > +
> > > + cxlr_dax->hpa_range.start = p->res->start;
> > > + cxlr_dax->hpa_range.end = p->res->end;
> > > +
> > > + dev = &cxlr_dax->dev;
> > > + cxlr_dax->cxlr = cxlr;
> > cxlr->cxlr_dax = cxlr_dax;
> >
> > Running into segfaults without this ^
>
> This should have been a purely non-functional change (the code is just
> moving from A to B without changes).
>
> That would mean the original code should run into this too unless I
> mucked up the move.

I do not think you mucked anything up ->cxlr_dax does not exist in mainline.