Jarkko Sakkinen ffcaa2172c 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>
2024-05-21 02:35:10 +03:00
..
2023-02-13 18:34:48 +08:00
2024-05-09 16:28:58 +03:00
2024-05-09 16:28:58 +03:00
2019-12-12 23:41:17 +02:00