zipl: fix incorrect setup of stage3 flags

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 <egorenar@linux.ibm.com>
Reviewed-by: Marc Hartmayer <mhartmay@linux.ibm.com>
Reviewed-by: Stefan Haberland <sth@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
Alexander Egorenkov
2020-07-29 07:12:38 +02:00
committed by Jan Höppner
parent 046d27a05b
commit fd817280d3

View File

@@ -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;