projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7333549
)
tpm_tis: check pnp_acpi_device return code
author
Kent Yoder
<key@linux.vnet.ibm.com>
Thu, 31 Jan 2013 15:39:31 +0000
(09:39 -0600)
committer
Kent Yoder
<key@linux.vnet.ibm.com>
Tue, 5 Feb 2013 15:38:26 +0000
(09:38 -0600)
Reported-by: Peter Hüwe <peterhuewe@gmx.de>
Reviewed-by: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: Kent Yoder <key@linux.vnet.ibm.com>
drivers/char/tpm/tpm_tis.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/char/tpm/tpm_tis.c
b/drivers/char/tpm/tpm_tis.c
index 6c69ad72f82fc665ac21f73ca042361b6a6b1501..8a41b6be23a057bd5ff033f30d7de52ac7085a38 100644
(file)
--- 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)
struct acpi_device *acpi = pnp_acpi_device(dev);
struct acpi_hardware_id *id;
+ if (!acpi)
+ return 0;
+
list_for_each_entry(id, &acpi->pnp.ids, list) {
if (!strcmp("INTC0102", id->id))
return 1;