TPM: fix suspend and resume failure
authorDavid Smith <dds@google.com>
Mon, 14 Jan 2008 08:55:12 +0000 (00:55 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 14 Jan 2008 16:52:22 +0000 (08:52 -0800)
commit2490c681ea3d7f5ac3fb876f14567bf1a9e0aa87
tree1e5f1e5280cacc2db866a9f08b04d52702596898
parent40d6a146629b98d8e322b6f9332b182c7cbff3df
TPM: fix suspend and resume failure

The savestate command structure was being overwritten by the result of
running the TPM_SaveState command after one run, so make it a local
variable to the function instead of a global variable that gets
overwritten.

Acked-by: Pavel Machek <pavel@ucw.cz>
Cc: Kent Yoder <shpedoikal@gmail.com>
Cc: Marcel Selhorst <tpm@selhorst.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/tpm/tpm.c