From fd817280d315ca0249bbdd9cd21bcd54a39bceda Mon Sep 17 00:00:00 2001 From: Alexander Egorenkov Date: Wed, 29 Jul 2020 07:12:38 +0200 Subject: [PATCH] zipl: fix incorrect setup of stage3 flags MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Stage 3 flags is a 64bit integer but function add_ipl_program used a 32bit integer instead. Due to this bug STAGE3_FLAG_SCSI and STAGE3_FLAG_KDUMP were not correctly set. Fixes: 412d3e8c ("zipl: consolidate stage3_params structs and stage3 flags") Signed-off-by: Alexander Egorenkov Reviewed-by: Marc Hartmayer Reviewed-by: Stefan Haberland Signed-off-by: Jan Höppner --- zipl/src/bootmap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zipl/src/bootmap.c b/zipl/src/bootmap.c index 30128c9a..86571639 100644 --- a/zipl/src/bootmap.c +++ b/zipl/src/bootmap.c @@ -509,7 +509,8 @@ add_ipl_program(int fd, struct job_ipl_data* ipl, disk_blockptr_t* program, size_t stage3_params_size; const char *comp_name[10]; size_t signature_size; - int offset, flags = 0; + int offset; + uint64_t flags = 0; void *stage3_params; struct stat stats; void *signature;