OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ee3f73
)
s390/protvirt: fix error return code in uv_info_init()
author
zhongbaisong
<zhongbaisong@huawei.com>
Wed, 7 Apr 2021 12:38:55 +0000
(20:38 +0800)
committer
Heiko Carstens
<hca@linux.ibm.com>
Mon, 12 Apr 2021 10:46:41 +0000
(12:46 +0200)
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
patch
|
blob
|
history
diff --git
a/arch/s390/kernel/uv.c
b/arch/s390/kernel/uv.c
index
cbfbeab
..
370f664
100644
(file)
--- a/
arch/s390/kernel/uv.c
+++ b/
arch/s390/kernel/uv.c
@@
-460,8
+460,10
@@
static int __init uv_info_init(void)
goto out_kobj;
uv_query_kset = kset_create_and_add("query", NULL, uv_kobj);
- if (!uv_query_kset)
+ if (!uv_query_kset) {
+ rc = -ENOMEM;
goto out_ind_files;
+ }
rc = sysfs_create_group(&uv_query_kset->kobj, &uv_query_attr_group);
if (!rc)