Files
twx-linux/kernel
Jia-Ju Bai 59622d325a kernel: kexec_file: fix error return code of kexec_calculate_store_digests()
[ Upstream commit 31d82c2c78 ]

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.

Link: https://lkml.kernel.org/r/20210309083904.24321-1-baijiaju1990@gmail.com
Fixes: a43cac0d9d ("kexec: split kexec_file syscall code to kexec_file.c")
Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com>
Reported-by: TOTE Robot <oslab@tsinghua.edu.cn>
Acked-by: Baoquan He <bhe@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-05-22 10:57:39 +02:00
..
2020-09-23 10:46:32 +02:00
…
…
…
2019-12-01 09:14:03 +01:00
…
…
…
…
…
…
…
…
…
…
2021-02-07 14:47:41 +01:00
2021-02-10 09:12:08 +01:00
2020-04-02 16:34:20 +02:00
…
…
…
…
…
…
2020-04-24 08:00:38 +02:00
2021-02-07 14:47:41 +01:00
…
…
…
2020-01-09 10:17:53 +01:00
…
…
…
…
…
…