This is a note to let you know that I've just added the patch titled gpiolib: acpi: Add missing memset(0) to acpi_get_gpiod_from_data() to the 6.5-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: gpiolib-acpi-add-missing-memset-0-to-acpi_get_gpiod_from_data.patch and it can be found in the queue-6.5 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From 479ac419206b5fe4ce4e40de61ac3210a36711aa Mon Sep 17 00:00:00 2001 From: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> Date: Thu, 19 Oct 2023 20:34:55 +0300 Subject: gpiolib: acpi: Add missing memset(0) to acpi_get_gpiod_from_data() From: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> commit 479ac419206b5fe4ce4e40de61ac3210a36711aa upstream. 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@xxxxxxxxxxxxxx> Fixes: 16ba046e86e9 ("gpiolib: acpi: teach acpi_find_gpio() to handle data-only nodes") Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> Reviewed-by: Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/gpio/gpiolib-acpi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpio/gpiolib-acpi.c b/drivers/gpio/gpiolib-acpi.c index fbda452fb4d6..51e41676de0b 100644 --- a/drivers/gpio/gpiolib-acpi.c +++ b/drivers/gpio/gpiolib-acpi.c @@ -951,6 +951,7 @@ static struct gpio_desc *acpi_get_gpiod_from_data(struct fwnode_handle *fwnode, if (!propname) return ERR_PTR(-EINVAL); + memset(&lookup, 0, sizeof(lookup)); lookup.index = index; ret = acpi_gpio_property_lookup(fwnode, propname, index, &lookup); -- 2.42.0 Patches currently in stable-queue which might be from andriy.shevchenko@xxxxxxxxxxxxxxx are queue-6.5/revert-pinctrl-avoid-unsafe-code-pattern-in-find_pinctrl.patch queue-6.5/gpiolib-acpi-add-missing-memset-0-to-acpi_get_gpiod_from_data.patch