]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
patch fuzz fix
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 26 Oct 2025 14:55:35 +0000 (15:55 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 26 Oct 2025 14:55:35 +0000 (15:55 +0100)
queue-6.17/riscv-hwprobe-avoid-uninitialized-variable-use-in-hw.patch

index d05ec0f34ab4d583c536cef99ede6d63fcc1bdbf..6693f6b64b93e934837336549e52d2ebd538ccb8 100644 (file)
@@ -27,14 +27,12 @@ Signed-off-by: Paul Walmsley <pjw@kernel.org>
 Link: https://lore.kernel.org/r/cf5a13ec-19d0-9862-059b-943f36107bf3@kernel.org
 Signed-off-by: Sasha Levin <sashal@kernel.org>
 ---
- arch/riscv/kernel/sys_hwprobe.c | 6 ++++++
+ arch/riscv/kernel/sys_hwprobe.c |    6 ++++++
  1 file changed, 6 insertions(+)
 
-diff --git a/arch/riscv/kernel/sys_hwprobe.c b/arch/riscv/kernel/sys_hwprobe.c
-index 3e9259790816e..5436b9d022e00 100644
 --- a/arch/riscv/kernel/sys_hwprobe.c
 +++ b/arch/riscv/kernel/sys_hwprobe.c
-@@ -27,6 +27,11 @@ static void hwprobe_arch_id(struct riscv_hwprobe *pair,
+@@ -30,6 +30,11 @@ static void hwprobe_arch_id(struct riscv
        bool first = true;
        int cpu;
  
@@ -46,7 +44,7 @@ index 3e9259790816e..5436b9d022e00 100644
        for_each_cpu(cpu, cpus) {
                u64 cpu_id;
  
-@@ -57,6 +62,7 @@ static void hwprobe_arch_id(struct riscv_hwprobe *pair,
+@@ -60,6 +65,7 @@ static void hwprobe_arch_id(struct riscv
                }
        }
  
@@ -54,6 +52,3 @@ index 3e9259790816e..5436b9d022e00 100644
        pair->value = id;
  }
  
--- 
-2.51.0
-