kho: kho_preserve_vmalloc(): don't return 0 when ENOMEM

kho_preserve_vmalloc() should return -ENOMEM when new_vmalloc_chunk()
fails.

Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/r/202601211636.IRaejjdw-lkp@intel.com/
Reviewed-by: Pasha Tatashin <pasha.tatashin@soleen.com>
Reviewed-by: Pratyush Yadav <pratyush@kernel.org>
Reviewed-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Cc: Alexander Graf <graf@amazon.com>
Cc: Jason Gunthorpe <jgg@nvidia.com>
Cc: Pasha Tatashin <pasha.tatashin@soleen.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

+3 -1
+3 -1
kernel/liveupdate/kexec_handover.c
··· 1014 chunk->phys[idx++] = phys; 1015 if (idx == ARRAY_SIZE(chunk->phys)) { 1016 chunk = new_vmalloc_chunk(chunk); 1017 - if (!chunk) 1018 goto err_free; 1019 idx = 0; 1020 } 1021 }
··· 1014 chunk->phys[idx++] = phys; 1015 if (idx == ARRAY_SIZE(chunk->phys)) { 1016 chunk = new_vmalloc_chunk(chunk); 1017 + if (!chunk) { 1018 + err = -ENOMEM; 1019 goto err_free; 1020 + } 1021 idx = 0; 1022 } 1023 }