mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
TPM: do not set device description if probe fails
device_set_desc should be called only if driver probes successfully. Approved by: mw(mentor) Reviewed by: mw, kd MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D35998
This commit is contained in:
parent
a8dc67388a
commit
31ee3a33aa
1 changed files with 1 additions and 1 deletions
|
|
@ -114,7 +114,7 @@ tpmcrb_acpi_probe(device_t dev)
|
|||
status = AcpiGetTable(ACPI_SIG_TPM2, 1, (ACPI_TABLE_HEADER **) &tbl);
|
||||
if(ACPI_FAILURE(status) ||
|
||||
tbl->StartMethod != TPM2_START_METHOD_CRB)
|
||||
err = ENXIO;
|
||||
return (ENXIO);
|
||||
|
||||
device_set_desc(dev, "Trusted Platform Module 2.0, CRB mode");
|
||||
return (err);
|
||||
|
|
|
|||
Loading…
Reference in a new issue