summaryrefslogtreecommitdiff
path: root/kernel/bpf
diff options
context:
space:
mode:
authorNayna Jain <nayna@linux.vnet.ibm.com>2018-04-02 21:50:06 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-11-04 14:52:44 +0100
commitdb9d15988afb923b6e559c8aa3ef56d596f74524 (patch)
treed1a17a854f37b570bad7a9fd1a53e53149f04c92 /kernel/bpf
parentc1fdafea627c843099518ebb5ec3fcc9396ae4a8 (diff)
tpm: move the delay_msec increment after sleep in tpm_transmit()
[ Upstream commit 92980756979a9c51be0275f395f4e89c42cf199a ] Commit e2fb992d82c6 ("tpm: add retry logic") introduced a new loop to handle the TPM2_RC_RETRY error. The loop retries the command after sleeping for the specified time, which is incremented exponentially in every iteration. Unfortunately, the loop doubles the time before sleeping, causing the initial sleep to be doubled. This patch fixes the initial sleep time. Fixes: commit e2fb992d82c6 ("tpm: add retry logic") Signed-off-by: Nayna Jain <nayna@linux.vnet.ibm.com> Reviewed-by: Mimi Zohar <zohar@linux.vnet.ibm.com> Tested-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'kernel/bpf')
0 files changed, 0 insertions, 0 deletions