diff options
author | Jarkko Sakkinen <jarkko@kernel.org> | 2024-05-20 02:31:53 +0300 |
---|---|---|
committer | Jarkko Sakkinen <jarkko@kernel.org> | 2024-05-21 02:35:10 +0300 |
commit | ffcaa2172cc1a85ddb8b783de96d38ca8855e248 (patch) | |
tree | bda8eb49bd902c3df46cce6d358c77178ed4f63c /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | |
parent | 8f6a15f095a63a83b096d9b29aaff4f0fbe6f6e6 (diff) | |
download | linux-ffcaa2172cc1a85ddb8b783de96d38ca8855e248.tar.gz linux-ffcaa2172cc1a85ddb8b783de96d38ca8855e248.tar.bz2 linux-ffcaa2172cc1a85ddb8b783de96d38ca8855e248.zip |
KEYS: trusted: Fix memory leak in tpm2_key_encode()
'scratch' is never freed. Fix this by calling kfree() in the success, and
in the error case.
Cc: stable@vger.kernel.org # +v5.13
Fixes: f2219745250f ("security: keys: trusted: use ASN.1 TPM2 key format for the blobs")
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
0 files changed, 0 insertions, 0 deletions