Re: [PATCH 1/4] resource: add a not device managed request_free_mem_region variant

From: Dan Williams
Date: Tue Aug 20 2019 - 00:39:12 EST


On Mon, Aug 19, 2019 at 7:26 PM Christoph Hellwig <hch@xxxxxx> wrote:
>
> On Mon, Aug 19, 2019 at 06:28:30PM -0700, Dan Williams wrote:
> >
> > Previously we would loudly crash if someone passed NULL to
> > devm_request_free_mem_region(), but now it will silently work and the
> > result will leak. Perhaps this wants a:
>
> We'd still instantly crash due to the dev_name dereference, right?

Whoops, yes.