diff options
| author | Tianjia Zhang <tianjia.zhang@linux.alibaba.com> | 2020-04-14 14:42:26 +0300 |
|---|---|---|
| committer | Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> | 2020-04-21 00:06:13 +0300 |
| commit | 29cb79795e324a8b65e7891d76f8f6ca911ba440 (patch) | |
| tree | fdce3bd8b3be211f9a10e9dbd86b619de4ee4ec3 /drivers/usb/cdns3/cdns3-imx.c | |
| parent | eba5cf3dcb844c82f54d4a857e124824e252206d (diff) | |
| download | linux-29cb79795e324a8b65e7891d76f8f6ca911ba440.tar.xz | |
tpm: fix wrong return value in tpm_pcr_extend
For the algorithm that does not match the bank, a positive
value EINVAL is returned here. I think this is a typo error.
It is necessary to return an error value.
Cc: stable@vger.kernel.org # 5.4.x
Fixes: 9f75c8224631 ("KEYS: trusted: correctly initialize digests and fix locking issue")
Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
Reviewed-by: Roberto Sassu <roberto.sassu@huawei.com>
Reviewed-by: Jerry Snitselaar <jsnitsel@redhat.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-imx.c')
0 files changed, 0 insertions, 0 deletions
