Heiko Carstens e636f65b3d s390/kexec: fix return code handling
[ Upstream commit 20c76e242e7025bd355619ba67beb243ba1a1e95 ]

kexec_file_add_ipl_report ignores that ipl_report_finish may fail and
can return an error pointer instead of a valid pointer.
Fix this and simplify by returning NULL in case of an error and let
the only caller handle this case.

Fixes: 99feaa717e55 ("s390/kexec_file: Create ipl report and pass to next kernel")
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-11-26 10:47:21 +01:00
..
2021-10-20 11:40:12 +02:00
2021-07-28 13:31:01 +02:00
2021-10-13 10:08:20 +02:00
2021-11-26 10:47:21 +01:00
2021-11-26 10:47:17 +01:00