Re: [PATCH] tpm: fix panic caused by "tpm: Autodetect itpmdevices"

From: James Morris
Date: Sun Jan 23 2011 - 19:32:03 EST


On Thu, 20 Jan 2011, Olof Johansson wrote:

> On Thu, Jan 6, 2011 at 7:24 PM, Olof Johansson <olof@xxxxxxxxx> wrote:
> > commit 3f0d3d016d89a5efb8b926d4707eb21fa13f3d27 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.

Applied to
git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6#for-linus

--
James Morris
<jmorris@xxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/