diff options
| -rw-r--r-- | drivers/char/tpm/tpm_tis.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/char/tpm/tpm_tis.c b/drivers/char/tpm/tpm_tis.c index 6c69ad72f82f..8a41b6be23a0 100644 --- a/drivers/char/tpm/tpm_tis.c +++ b/drivers/char/tpm/tpm_tis.c | |||
| @@ -84,6 +84,9 @@ static int is_itpm(struct pnp_dev *dev) | |||
| 84 | struct acpi_device *acpi = pnp_acpi_device(dev); | 84 | struct acpi_device *acpi = pnp_acpi_device(dev); |
| 85 | struct acpi_hardware_id *id; | 85 | struct acpi_hardware_id *id; |
| 86 | 86 | ||
| 87 | if (!acpi) | ||
| 88 | return 0; | ||
| 89 | |||
| 87 | list_for_each_entry(id, &acpi->pnp.ids, list) { | 90 | list_for_each_entry(id, &acpi->pnp.ids, list) { |
| 88 | if (!strcmp("INTC0102", id->id)) | 91 | if (!strcmp("INTC0102", id->id)) |
| 89 | return 1; | 92 | return 1; |
