TPM: revert the list handling logic fixed in 398a1e7
authorJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Mon, 2 Nov 2015 17:55:29 +0000 (19:55 +0200)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Mon, 9 Nov 2015 15:52:55 +0000 (17:52 +0200)
commitb1a4144a695ff4a6834a2680600f36f991fa4926
tree15093fc8190848260a56e2171368ac241b0c29fb
parenteb8ed1eb9a158c460d10205eaff71fd4ac67c160
TPM: revert the list handling logic fixed in 398a1e7

Mimi reported that afb5abc reverts the fix in 398a1e7. This patch
reverts it back.

Fixes: afb5abc262e9 ("tpm: two-phase chip management functions")
Reported-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Acked-by: Peter Huewe <PeterHuewe@gmx.de>
drivers/char/tpm/tpm-chip.c