diff options
author | 2010-11-12 22:30:02 +0100 | |
---|---|---|
committer | 2011-01-24 11:22:48 +1100 | |
commit | c4ff4b829ef9e6353c0b133b7adb564a68054979 (patch) | |
tree | 0b32c7b91763144ea587e2965f5a401eea3d537c /kernel/irq/pm.c | |
parent | trusted keys: Fix a memory leak in trusted_update(). (diff) | |
download | wireguard-linux-c4ff4b829ef9e6353c0b133b7adb564a68054979.tar.xz wireguard-linux-c4ff4b829ef9e6353c0b133b7adb564a68054979.zip |
TPM: Long default timeout fix
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>
Diffstat (limited to 'kernel/irq/pm.c')
0 files changed, 0 insertions, 0 deletions