diff options
author | Vasily Gorbik <gor@linux.ibm.com> | 2018-04-03 10:02:15 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2018-04-10 01:38:58 -0400 |
commit | 15deb080a6087b73089139569558965750e69d67 (patch) | |
tree | e96a653b2722f1f4e411509926ce6199e79cfd96 | |
parent | 7eee12b44eb4c0c30b0eac5946fb59f1460572f6 (diff) |
s390/ipl: ensure loadparm valid flag is set
When loadparm is set in reipl parm block, the kernel should also set
DIAG308_FLAGS_LP_VALID flag.
This fixes loadparm ignoring during z/VM fcp -> ccw reipl and kvm direct
boot -> ccw reipl.
Cc: <stable@vger.kernel.org>
Reviewed-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
-rw-r--r-- | arch/s390/kernel/ipl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/s390/kernel/ipl.c b/arch/s390/kernel/ipl.c index 34477c1aee6d..502c90525a0e 100644 --- a/arch/s390/kernel/ipl.c +++ b/arch/s390/kernel/ipl.c | |||
@@ -776,6 +776,7 @@ static ssize_t reipl_generic_loadparm_store(struct ipl_parameter_block *ipb, | |||
776 | /* copy and convert to ebcdic */ | 776 | /* copy and convert to ebcdic */ |
777 | memcpy(ipb->hdr.loadparm, buf, lp_len); | 777 | memcpy(ipb->hdr.loadparm, buf, lp_len); |
778 | ASCEBC(ipb->hdr.loadparm, LOADPARM_LEN); | 778 | ASCEBC(ipb->hdr.loadparm, LOADPARM_LEN); |
779 | ipb->hdr.flags |= DIAG308_FLAGS_LP_VALID; | ||
779 | return len; | 780 | return len; |
780 | } | 781 | } |
781 | 782 | ||