]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
fix up geode patch
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Apr 2026 08:53:04 +0000 (10:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Apr 2026 08:53:04 +0000 (10:53 +0200)
queue-6.12/x86-platform-geode-fix-on-stack-property-data-use-after-return-bug.patch
queue-6.18/x86-platform-geode-fix-on-stack-property-data-use-after-return-bug.patch
queue-6.19/x86-platform-geode-fix-on-stack-property-data-use-after-return-bug.patch

index 29576ae31fab4a508842d37214aa81e8abe5a942..a7abeb33cb1bf16efab8dacca09ca5a65dc12c12 100644 (file)
@@ -70,7 +70,7 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
                goto err_free_swnodes;
        }
  
-+      gpio_refs = kzalloc_objs(*gpio_refs, n_leds);
++      gpio_refs = kcalloc(n_leds, sizeof(*gpio_refs), GFP_KERNEL);
 +      if (!gpio_refs) {
 +              err = -ENOMEM;
 +              goto err_free_props;
index 29576ae31fab4a508842d37214aa81e8abe5a942..a7abeb33cb1bf16efab8dacca09ca5a65dc12c12 100644 (file)
@@ -70,7 +70,7 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
                goto err_free_swnodes;
        }
  
-+      gpio_refs = kzalloc_objs(*gpio_refs, n_leds);
++      gpio_refs = kcalloc(n_leds, sizeof(*gpio_refs), GFP_KERNEL);
 +      if (!gpio_refs) {
 +              err = -ENOMEM;
 +              goto err_free_props;
index 29576ae31fab4a508842d37214aa81e8abe5a942..a7abeb33cb1bf16efab8dacca09ca5a65dc12c12 100644 (file)
@@ -70,7 +70,7 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
                goto err_free_swnodes;
        }
  
-+      gpio_refs = kzalloc_objs(*gpio_refs, n_leds);
++      gpio_refs = kcalloc(n_leds, sizeof(*gpio_refs), GFP_KERNEL);
 +      if (!gpio_refs) {
 +              err = -ENOMEM;
 +              goto err_free_props;