Re: [PATCH v4 2/4] gpiolib: acpi: fix resource leak in OpRegion
From: Marco Scardovi
Date: Mon Jun 01 2026 - 09:07:27 EST
In data lunedì 1 giugno 2026 14:18:15 Ora legale dell’Europa centrale, hai
scritto:
> Hi,
>
> On Sun, May 31, 2026 at 02:03:09PM +0200, Marco Scardovi wrote:
> > ...
>
> If we fail to remove the OpRegion handler and continue to release the
> structures does that mean any AML code that accesses the GPIOs now are
> accessing already removed (below) objects? Here _REG is not called (we
> failed to remove the OpRegion handler) so the AML does not know that it is
> gone so it can happily still access the region. So IMHO it is safer to keep
> the connections instead of removing them.
>
> Of course it is possible that I'm missing something. It has been a while
> since I looked at any of this stuff.
>
Hi Mika,
no, I get your point: I was being overly cautious about something that may
or may not happen. Consider these patches as void and sorry for the noise.
Marco