gpiolib: acpi: Add missing memset(0) to acpi_get_gpiod_from_data()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 19 Oct 2023 17:34:55 +0000 (20:34 +0300)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Fri, 20 Oct 2023 09:24:16 +0000 (11:24 +0200)
commit479ac419206b5fe4ce4e40de61ac3210a36711aa
treeae1393dd2c69bc50c4827bd6c259e59e0a08d54f
parentfc363413ef8ea842ae7a99e3caf5465dafdd3a49
gpiolib: acpi: Add missing memset(0) to acpi_get_gpiod_from_data()

When refactoring the acpi_get_gpiod_from_data() the change missed
cleaning up the variable on stack. Add missing memset().

Reported-by: Ferry Toth <ftoth@exalondelft.nl>
Fixes: 16ba046e86e9 ("gpiolib: acpi: teach acpi_find_gpio() to handle data-only nodes")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpiolib-acpi.c