On Mon, Mar 1, 2021 at 10:05 AM Johan Hovold <[email protected]> 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: [email protected] # 4.6
> Reviewed-by: Saravana Kannan <[email protected]>
> Signed-off-by: Johan Hovold <[email protected]>
Excellent fix as well,
Reviewed-by: Linus Walleij <[email protected]>
Yours,
Linus Walleij