[PATCH] pinctrl: st: Remove the GPIO banks on teardown

Linus Walleij linusw at kernel.org
Tue Dec 1 12:46:33 PST 2026


On Sun, Nov 29, 2026 at 10:47 AM Tian Xuechen
<202300460064 at mail.sdu.edu.cn> wrote:

> From: Tian Xuechen <202300460064 at mail.sdu.edu.cn>
>
> Each bank publishes a GPIO chip backed by managed storage. A later
> probe failure or driver removal frees that storage with the chip
> still registered. Manage each GPIO registration with the device.
>
> This issue was found by our static analysis tool under development.
>
> Fixes: 701016c0cba5 ("pinctrl: st: Add pinctrl and pinconf support.")
> Signed-off-by: Tian Xuechen <202300460064 at mail.sdu.edu.cn>

Patch applied as nonurgent fix.

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list