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 22813a1 commit 2920141Copy full SHA for 2920141
drivers/platform/x86/intel/tpmi.c
@@ -763,8 +763,11 @@ static int intel_vsec_tpmi_init(struct auxiliary_device *auxdev)
763
* when actual device nodes created outside this
764
* loop via tpmi_create_devices().
765
*/
766
- if (pfs->pfs_header.tpmi_id == TPMI_INFO_ID)
767
- tpmi_process_info(tpmi_info, pfs);
+ if (pfs->pfs_header.tpmi_id == TPMI_INFO_ID) {
+ ret = tpmi_process_info(tpmi_info, pfs);
768
+ if (ret)
769
+ return ret;
770
+ }
771
772
if (pfs->pfs_header.tpmi_id == TPMI_CONTROL_ID)
773
tpmi_set_control_base(auxdev, tpmi_info, pfs);
0 commit comments