diff options
author | Rajiv Andrade <srajiv@linux.vnet.ibm.com> | 2010-11-12 22:30:02 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-03-21 12:44:58 -0700 |
commit | 249afc04243913d4b3fab154079197102fbb4c8e (patch) | |
tree | 2a23f3c7b4fd53fc8e4e2d5e0e3af33b2d201bb5 /security | |
parent | b2feccf658128a26c8c149a570099dac7684f661 (diff) |
TPM: Long default timeout fix
commit c4ff4b829ef9e6353c0b133b7adb564a68054979 upstream.
If duration variable value is 0 at this point, it's because
chip->vendor.duration wasn't filled by tpm_get_timeouts() yet.
This patch sets then the lowest timeout just to give enough
time for tpm_get_timeouts() to further succeed.
This fix avoids long boot times in case another entity attempts
to send commands to the TPM when the TPM isn't accessible.
Signed-off-by: Rajiv Andrade <srajiv@linux.vnet.ibm.com>
Signed-off-by: James Morris <jmorris@namei.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions