zipl/src: Don't modify job->data.dump and job->data.mvdump sequentially

Set job->data.dump.no_compress (job->data.mvdump.force) only after
making sure that the job is 'dump' ('mvdump') respectively. Othrewise,
the second assignment can potentially corrupt the value that was set by
the first assignment.

Reviewed-by: Mikhail Zaslonko <zaslonko@linux.ibm.com>
Signed-off-by: Eduard Shishkin <edward6@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
Eduard Shishkin
2026-04-24 14:26:45 +02:00
committed by Jan Höppner
parent d6c2bac99f
commit d1ab6be082
2 changed files with 6 additions and 2 deletions
+2
View File
@@ -160,6 +160,8 @@ struct job_data {
int command_line;
int is_secure;
int is_ldipl_dump;
int no_compress;
int force;
};
static inline struct target *target_at(struct job_target_data *data,