Skip to content
Commit e5cce6c1 authored by Olof Johansson's avatar Olof Johansson Committed by James Morris
Browse files

tpm: fix panic caused by "tpm: Autodetect itpm devices"

commit 3f0d3d01

 adds a check for
PNP device id to the common tpm_tis_init() function, which in some
cases (force=1) will be called without the device being a member of
a pnp_dev. Oopsing and panics ensue.

Move the test up to before the call to tpm_tis_init(), since it
just modifies a global variable anyway.

Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
Acked-by: default avatarRajiv Andrade <srajiv@linux.vnet.ibm.com>
Signed-off-by: default avatarJames Morris <jmorris@namei.org>
parent c4ff4b82
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment