s390/protvirt: fix error return code in uv_info_init()
Subsystems (4)
PATCH 1/1 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.
--- arch/s390/kernel/uv.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
arch/s390/kernel/uv.c +3 -1
@@ -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)
格式不对,不要用outlook发
Quoted 26 lines · zhongbaisong
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 <[email protected]>Signed-off-by Baisong Zhong <[email protected]>---
arch/s390/kernel/uv.c | 4 +++-1 file changed, 3 insertions(+), 1 deletion(-)arch/s390/kernel/uv.c +3
-1@@ -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)
Quoted 14 lines
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 <[email protected]>Signed-off-by Baisong Zhong <[email protected]>---
arch/s390/kernel/uv.c | 4 +++-1 file changed, 3 insertions(+), 1 deletion(-)arch/s390/kernel/uv.c +0
-0
arch/s390/kernel/uv.c static int __init uv_info_init(void) · line 466
Quoted 8 lines
arch/s390/kernel/uv.c +3
-1@@ -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; + }
Your patch is corrupted, please resend with correct format.
Quoted 4 lines
arch/s390/kernel/uv.c +0
-0rc = sysfs_create_group(&uv_query_kset->kobj, &uv_query_attr_group); if (!rc)
Heiko Carstens
maintainerQuoted 16 lines · weiyongjun (A)
Quoted 16 lines
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 <[email protected]>Signed-off-by Baisong Zhong <[email protected]>---
arch/s390/kernel/uv.c | 4 +++-1 file changed, 3 insertions(+), 1 deletion(-)arch/s390/kernel/uv.c +0
-0@@ -460,8 +460,10 @@ static int __init uv_info_init(void) goto out_kobj;
Quoted 8 lines
arch/s390/kernel/uv.c static int __init uv_info_init(void) · line 466
Quoted 6 lines
arch/s390/kernel/uv.c +3
-1uv_query_kset = kset_create_and_add("query", NULL, uv_kobj); - if (!uv_query_kset) + if (!uv_query_kset) { + rc = -ENOMEM; goto out_ind_files; + }Your patch is corrupted, please resend with correct format.
Fixed up, and applied anyway. Thanks.
On Wed, Apr 07, 2021 at 08:38:55PM +0800, zhongbaisong wrote:
^^^^^^^^^^^^
Heiko Carstens already fixed and applied the patch but it's best to fix this From line so it says "Baisong Zhong" like your Signed-off-by line.
regards,
dan carpenter