]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcda9a6fc641a47ac8738022231da15480beb4a5b
tree1e5f1e5280cacc2db866a9f08b04d52702596898
parent6ce07d1b62fc68ea8bd2b98f8cab070f9798f9bf
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