Files
kernel/drivers/gpio/gpiolib-sysfs.c
Bartosz Golaszewski 53b2f35399 gpio: sysfs: extend the critical section for unregistering sysfs devices
[ Upstream commit 59cba4a0e6 ]

Checking the gdev->mockdev pointer for NULL must be part of the critical
section.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-08-29 17:33:34 +02:00

19 KiB