]> git.baikalelectronics.ru Git - kernel.git/commit
s390/sthyi: Fix machine name validity indication
authorJanosch Frank <frankja@linux.ibm.com>
Tue, 2 Oct 2018 08:57:52 +0000 (10:57 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 15 Oct 2018 10:17:00 +0000 (12:17 +0200)
commit6b2ff3363d30c722f842a6d982c4b3b5402edf54
tree0a92ca1b4e55edcde2f8ff22cebacf02699e1981
parent0083c9f1dbd1d9fed286d41b254f846082801ed1
s390/sthyi: Fix machine name validity indication

When running as a level 3 guest with no host provided sthyi support
sclp_ocf_cpc_name_copy() will only return zeroes. Zeroes are not a
valid group name, so let's not indicate that the group name field is
valid.

Also the group name is not dependent on stsi, let's not return based
on stsi before setting it.

Fixes: fb78104de5b6 ("KVM: s390: Add sthyi emulation")
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/sthyi.c