s390/protvirt: fix error return code in uv_info_init()
authorzhongbaisong <zhongbaisong@huawei.com>
Wed, 7 Apr 2021 12:38:55 +0000 (20:38 +0800)
committerHeiko Carstens <hca@linux.ibm.com>
Mon, 12 Apr 2021 10:46:41 +0000 (12:46 +0200)
commit644975179c00802936c5afc732d9df7f63f735a0
tree6033ddb6915c7c6c056a5dd12a49552b7c9eb174
parent0ee3f73914d93e47bb0146371bc66ca2982970c9
s390/protvirt: fix error return code in uv_info_init()

Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Baisong Zhong <zhongbaisong@huawei.com>
Fixes: 37564ed834ac ("s390/uv: add prot virt guest/host indication files")
Link: https://lore.kernel.org/r/2f7d62a4-3e75-b2b4-951b-75ef8ef59d16@huawei.com
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/kernel/uv.c