* [PATCH] powerpc/kexec: Remove stale comment from check_realloc_usable_mem()
@ 2026-07-26 18:30 Thorsten Blum
0 siblings, 0 replies; only message in thread
From: Thorsten Blum @ 2026-07-26 18:30 UTC (permalink / raw)
To: Madhavan Srinivasan, Michael Ellerman, Nicholas Piggin,
Christophe Leroy (CS GROUP), Sourabh Jain, Aditya Gupta,
Hari Bathini, Thorsten Blum
Cc: linuxppc-dev, linux-kernel
check_realloc_usable_mem() does not free the buffer if memory allocation
fails - remove the misleading comment. The buffer is owned and freed by
update_usable_mem_fdt().
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
---
arch/powerpc/kexec/file_load_64.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/arch/powerpc/kexec/file_load_64.c b/arch/powerpc/kexec/file_load_64.c
index c3503d698428..6d0c818ac619 100644
--- a/arch/powerpc/kexec/file_load_64.c
+++ b/arch/powerpc/kexec/file_load_64.c
@@ -69,8 +69,6 @@ int arch_check_excluded_range(struct kimage *image, unsigned long start,
* @um_info: Usable memory buffer and ranges info.
* @cnt: No. of entries to accommodate.
*
- * Frees up the old buffer if memory reallocation fails.
- *
* Returns buffer on success, NULL on error.
*/
static __be64 *check_realloc_usable_mem(struct umem_info *um_info, int cnt)
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-26 18:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-26 18:30 [PATCH] powerpc/kexec: Remove stale comment from check_realloc_usable_mem() Thorsten Blum
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox