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 <[email protected]> --- 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)
