linux/arch/powerpc
David Hildenbrand 8fb48de871 powerpc/pseries/cmm: call balloon_devinfo_init() also without CONFIG_BALLOON_COMPACTION
commit fc6bcf9ac4 upstream.

Patch series "powerpc/pseries/cmm: two smaller fixes".

Two smaller fixes identified while doing a bigger rework.


This patch (of 2):

We always have to initialize the balloon_dev_info, even when compaction is
not configured in: otherwise the containing list and the lock are left
uninitialized.

Likely not many such configs exist in practice, but let's CC stable to
be sure.

This was found by code inspection.

Link: https://lkml.kernel.org/r/20251021100606.148294-1-david@redhat.com
Link: https://lkml.kernel.org/r/20251021100606.148294-2-david@redhat.com
Fixes: fe030c9b85 ("powerpc/pseries/cmm: Implement balloon compaction")
Signed-off-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
Cc: Madhavan Srinivasan <maddy@linux.ibm.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Nicholas Piggin <npiggin@gmail.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2026-01-08 10:17:02 +01:00
..
boot powerpc/addnote: Fix overflow on 32-bit builds 2026-01-02 12:57:00 +01:00
configs Crypto library updates for 6.18 2025-09-29 15:48:56 -07:00
crypto lib/crypto: curve25519: Consolidate into single module 2025-09-06 16:32:43 -07:00
include powerpc/64s/slb: Fix SLB multihit issue during SLB preload 2026-01-08 10:16:57 +01:00
kernel powerpc/64s/slb: Fix SLB multihit issue during SLB preload 2026-01-08 10:16:57 +01:00
kexec powerpc/kexec: Enable SMT before waking offline CPUs 2026-01-02 12:57:25 +01:00
kvm powerpc, ocxl: Fix extraction of struct xive_irq_data 2025-10-13 09:40:55 +05:30
lib powerpc/qspinlock: Add spinlock contention tracepoint 2025-09-01 13:38:12 +05:30
math-emu powerpc/math-emu: Inhibit W=1 warnings 2022-09-08 11:11:18 +10:00
mm powerpc/64s/slb: Fix SLB multihit issue during SLB preload 2026-01-08 10:16:57 +01:00
net powerpc64/bpf: Implement PROBE_ATOMIC instructions 2025-09-06 15:49:44 +05:30
perf powerpc/perf/vpa-dtl: Handle the writing of perf record when aux wake up is needed 2025-09-22 14:48:57 +05:30
platforms powerpc/pseries/cmm: call balloon_devinfo_init() also without CONFIG_BALLOON_COMPACTION 2026-01-08 10:17:02 +01:00
purgatory Makefile: remove redundant tool coverage variables 2024-05-14 23:35:48 +09:00
sysdev powerpc, ocxl: Fix extraction of struct xive_irq_data 2025-10-13 09:40:55 +05:30
tools powerpc/tools: drop -o pipefail in gcc check scripts 2026-01-08 10:16:44 +01:00
xmon powerpc/xmon: replace sizeof calculations with ARRAY_SIZE macro 2025-09-01 13:40:46 +05:30
Kbuild powerpc64/ftrace: Move ftrace sequence out of line 2024-10-31 11:00:54 +11:00
Kconfig mm: fix MAX_FOLIO_ORDER on powerpc configs with hugetlb 2025-11-15 10:52:00 -08:00
Kconfig.debug powerpc: Remove UDBG_RTAS_CONSOLE 2025-02-26 21:15:09 +05:30
Makefile kbuild: Add missing $(objtree) prefix to powerpc crtsavres.o artifact 2025-09-01 13:41:57 +05:30
Makefile.postlink powerpc/ftrace: Add a postlink script to validate function tracer 2024-10-31 11:00:54 +11:00