Re: [PATCH v2 2/2] gpio: fix gpio-device list corruption
From: Linus Walleij <hidden>
Date: 2021-03-02 19:49:13
Also in:
linux-gpio, lkml
From: Linus Walleij <hidden>
Date: 2021-03-02 19:49:13
Also in:
linux-gpio, lkml
On Mon, Mar 1, 2021 at 10:05 AM Johan Hovold [off-list ref] wrote:
Make sure to hold the gpio_lock when removing the gpio device from the
gpio_devices list (when dropping the last reference) to avoid corrupting
the list when there are concurrent accesses.
Fixes: ff2b13592299 ("gpio: make the gpiochip a real device")
Cc: stable@vger.kernel.org # 4.6
Reviewed-by: Saravana Kannan <redacted>
Signed-off-by: Johan Hovold <johan@kernel.org>Excellent fix as well, Reviewed-by: Linus Walleij <redacted> Yours, Linus Walleij