Skip to content

Commit

Permalink
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…
Browse files Browse the repository at this point in the history
…/git/jmorris/security-testing-2.6

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6:
  tpm_tis: fix subsequent suspend failures
  • Loading branch information
Linus Torvalds committed Jul 26, 2010
2 parents 20ba5ef + 59f6fbe commit 58b164b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion drivers/char/tpm/tpm_tis.c
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,14 @@ static int tpm_tis_pnp_suspend(struct pnp_dev *dev, pm_message_t msg)

static int tpm_tis_pnp_resume(struct pnp_dev *dev)
{
return tpm_pm_resume(&dev->dev);
struct tpm_chip *chip = pnp_get_drvdata(dev);
int ret;

ret = tpm_pm_resume(&dev->dev);
if (!ret)
tpm_continue_selftest(chip);

return ret;
}

static struct pnp_device_id tpm_pnp_tbl[] __devinitdata = {
Expand Down

0 comments on commit 58b164b

Please sign in to comment.