Thread (2 messages) 2 messages, 2 authors, 2021-03-02

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

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help