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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 19 Feb 2016 22:28:26 +0000 (14:28 -0800)
commit30b258e6782fa45e98a761a5b0301ab5b04ad0dd
treeff7f73eeb3c5fb7515aea2a7ddcdf88dda3d0a54
parent948670bcb1bb63cabbbf7fca762514bea78048de
TPM: revert the list handling logic fixed in 398a1e7

commit b1a4144a695ff4a6834a2680600f36f991fa4926 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/tpm/tpm-chip.c