Skip to content

Commit

Permalink
[S390] incorrect reipl nss name.
Browse files Browse the repository at this point in the history
/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: Hongjie Yang <hongjie@us.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
  • Loading branch information
Hongjie Yang authored and Martin Schwidefsky committed Mar 5, 2008
1 parent 208e559 commit 583b33b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions arch/s390/kernel/early.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,17 @@ static noinline __init void create_kernel_nss(void)

__cpcmd(defsys_cmd, NULL, 0, &response);

if (response != 0)
if (response != 0) {
kernel_nss_name[0] = '\0';
return;
}

__cpcmd(savesys_cmd, NULL, 0, &response);

if (response != strlen(savesys_cmd))
if (response != strlen(savesys_cmd)) {
kernel_nss_name[0] = '\0';
return;
}

ipl_flags = IPL_NSS_VALID;
}
Expand Down

0 comments on commit 583b33b

Please sign in to comment.