提交 583b33bc 编写于 作者: H Hongjie Yang 提交者: Martin Schwidefsky

[S390] incorrect reipl nss name.

/sys/firmware/reipl/nss/name contains the nss name when defsys or
savesys command has been executed. If the defsys or savesys command
fails the kernel_nss_name has to be cleared since a reipl on that
nss name won't be possible.
Signed-off-by: NHongjie Yang <hongjie@us.ibm.com>
Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
上级 208e5591
...@@ -88,13 +88,17 @@ static noinline __init void create_kernel_nss(void) ...@@ -88,13 +88,17 @@ static noinline __init void create_kernel_nss(void)
__cpcmd(defsys_cmd, NULL, 0, &response); __cpcmd(defsys_cmd, NULL, 0, &response);
if (response != 0) if (response != 0) {
kernel_nss_name[0] = '\0';
return; return;
}
__cpcmd(savesys_cmd, NULL, 0, &response); __cpcmd(savesys_cmd, NULL, 0, &response);
if (response != strlen(savesys_cmd)) if (response != strlen(savesys_cmd)) {
kernel_nss_name[0] = '\0';
return; return;
}
ipl_flags = IPL_NSS_VALID; ipl_flags = IPL_NSS_VALID;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册