File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1265,6 +1265,7 @@ static const struct x86_cpu_id rapl_ids[] __initconst = {
1265
1265
X86_MATCH_VFM (INTEL_SAPPHIRERAPIDS_X , & rapl_defaults_spr_server ),
1266
1266
X86_MATCH_VFM (INTEL_EMERALDRAPIDS_X , & rapl_defaults_spr_server ),
1267
1267
X86_MATCH_VFM (INTEL_LUNARLAKE_M , & rapl_defaults_core ),
1268
+ X86_MATCH_VFM (INTEL_PANTHERLAKE_L , & rapl_defaults_core ),
1268
1269
X86_MATCH_VFM (INTEL_ARROWLAKE_H , & rapl_defaults_core ),
1269
1270
X86_MATCH_VFM (INTEL_ARROWLAKE , & rapl_defaults_core ),
1270
1271
X86_MATCH_VFM (INTEL_ARROWLAKE_U , & rapl_defaults_core ),
Original file line number Diff line number Diff line change @@ -627,8 +627,7 @@ struct powercap_control_type *powercap_register_control_type(
627
627
dev_set_name (& control_type -> dev , "%s" , name );
628
628
result = device_register (& control_type -> dev );
629
629
if (result ) {
630
- if (control_type -> allocated )
631
- kfree (control_type );
630
+ put_device (& control_type -> dev );
632
631
return ERR_PTR (result );
633
632
}
634
633
idr_init (& control_type -> idr );
You can’t perform that action at this time.
0 commit comments