We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a3c36e commit c5dbf04Copy full SHA for c5dbf04
drivers/platform/x86/hp/hp-bioscfg/bioscfg.c
@@ -630,21 +630,19 @@ static int hp_add_other_attributes(int attr_type)
630
switch (attr_type) {
631
case HPWMI_SECURE_PLATFORM_TYPE:
632
ret = hp_populate_secure_platform_data(attr_name_kobj);
633
- if (ret)
634
- goto err_other_attr_init;
635
break;
636
637
case HPWMI_SURE_START_TYPE:
638
ret = hp_populate_sure_start_data(attr_name_kobj);
639
640
641
642
643
default:
644
ret = -EINVAL;
645
646
}
647
+ if (ret)
+ goto err_other_attr_init;
+
648
mutex_unlock(&bioscfg_drv.mutex);
649
return 0;
650
0 commit comments