diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2018-10-16 16:37:16 +0300 |
---|---|---|
committer | Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> | 2018-11-13 13:46:32 +0200 |
commit | 01f54664a4db0d612de0ece8e0022f21f9374e9b (patch) | |
tree | cd267ddd504c3bfb059410c79b78a2032c9bbf57 /fs | |
parent | 95adc6b410b7aa895dcf5ed9cb7dc4a20a3d5c5a (diff) | |
download | linux-01f54664a4db0d612de0ece8e0022f21f9374e9b.tar.bz2 |
tpm: tpm_try_transmit() refactor error flow.
First, rename out_no_locality to out_locality for bailing out on
both tpm_cmd_ready() and tpm_request_locality() failure.
Second, ignore the return value of go_to_idle() as it may override
the return value of the actual tpm operation, the go_to_idle() error
will be caught on any consequent command.
Last, fix the wrong 'goto out', that jumped back instead of forward.
Cc: stable@vger.kernel.org
Fixes: 627448e85c76 ("tpm: separate cmd_ready/go_idle from runtime_pm")
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Tested-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions