| Summary | In the Linux kernel, the following vulnerability has been resolved: gpio: Fix resource leaks on errors in gpiochip_add_data_with_key() Since commit aab5c6f20023 ("gpio: set device type for GPIO chips"), Drop the reference on errors. Also reorder the instructions to make the error handling simpler. >>> Some memory allocation. Go to ERR ZONE 1 on errors. gpiodev_release() takes over the responsibility for freeing the >>> Some initialization mainly on `gdev`. >>> ERR ZONE 2. gpio_device_put() and exit. |
|---|---|
| Publication Date | May 2, 2026, 12:16 a.m. |
| Registration Date | May 2, 2026, 4:07 a.m. |
| Last Update | May 2, 2026, 12:24 a.m. |