]> git.hungrycats.org Git - linux/commit
gpio: fix resource unwinding order in error path
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Thu, 29 Feb 2024 17:25:49 +0000 (18:25 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Mar 2024 14:38:50 +0000 (14:38 +0000)
commitead68522455b8923c7787a431bbe015a97735c9b
tree067cf1bf5a6042b0cea180b4642e5d921ec55bd6
parentea514ac5f1bec0b24ca72f13e361d67e1dbce7c9
gpio: fix resource unwinding order in error path

[ Upstream commit ec5c54a9d3c4f9c15e647b049fea401ee5258696 ]

Hogs are added *after* ACPI so should be removed *before* in error path.

Fixes: a411e81e61df ("gpiolib: add hogs support for machine code")
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpio/gpiolib.c