Re: [PATCH] kernel: kexec_file: fix error return code of kexec_calculate_store_digests()

2021-03-10 Thread Baoquan He
On 03/09/21 at 12:39am, Jia-Ju Bai wrote: > When vzalloc() returns NULL to sha_regions, no error return code of > kexec_calculate_store_digests() is assigned. > To fix this bug, ret is assigned with -ENOMEM in this case. > > Fixes: a43cac0d9dc2 ("kexec: split kexec_file syscall code to

[PATCH] kernel: kexec_file: fix error return code of kexec_calculate_store_digests()

2021-03-09 Thread Jia-Ju Bai
When vzalloc() returns NULL to sha_regions, no error return code of kexec_calculate_store_digests() is assigned. To fix this bug, ret is assigned with -ENOMEM in this case. Fixes: a43cac0d9dc2 ("kexec: split kexec_file syscall code to kexec_file.c") Reported-by: TOTE Robot Signed-off-by: Jia-Ju