Hi Andy, Mika,
Thanks in advance for your time, patience and your feedbacks.
I decided to split the original patch in two, one for the fixes
and one for the modularization of the code.
This first series includes:
- Robust bounds checking for pin tables to prevent potential
out-of-bounds reads when parsing malformed or empty ACPI
namespace tables.
- A resource leak fix in the OpRegion cleanup path if handler
removal fails or encounters errors.
Assisted-by: Antigravity:gemini-3-flash
Signed-off-by: Marco Scardovi <mscardovi95@gmail.com>
Marco Scardovi (scardracs) (2):
gpiolib: acpi: Add robust bounds-checking for GPIO pin resources
gpiolib: acpi: Fix resource leak in OpRegion cleanup path
drivers/gpio/gpiolib-acpi-core.c | 23 ++++++++++++++++++++---
1 file changed, 20 insertions(+), 3 deletions(-)
--
2.54.0