summaryrefslogtreecommitdiff
path: root/drivers/platform/x86/hp/hp-bioscfg/bioscfg.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/platform/x86/hp/hp-bioscfg/bioscfg.c')
-rw-r--r--drivers/platform/x86/hp/hp-bioscfg/bioscfg.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/platform/x86/hp/hp-bioscfg/bioscfg.c b/drivers/platform/x86/hp/hp-bioscfg/bioscfg.c
index 32d9c36ca553..8c4f9e12f018 100644
--- a/drivers/platform/x86/hp/hp-bioscfg/bioscfg.c
+++ b/drivers/platform/x86/hp/hp-bioscfg/bioscfg.c
@@ -630,13 +630,18 @@ static int hp_add_other_attributes(int attr_type)
switch (attr_type) {
case HPWMI_SECURE_PLATFORM_TYPE:
ret = hp_populate_secure_platform_data(attr_name_kobj);
+ if (ret)
+ goto err_other_attr_init;
break;
case HPWMI_SURE_START_TYPE:
ret = hp_populate_sure_start_data(attr_name_kobj);
+ if (ret)
+ goto err_other_attr_init;
break;
default:
+ ret = -EINVAL;
goto err_other_attr_init;
}