diff options
author | Jarkko Sakkinen <[email protected]> | 2017-06-20 11:38:02 +0200 |
---|---|---|
committer | James Morris <[email protected]> | 2017-07-07 09:49:24 +1000 |
commit | 13b47cfcfc60495cde216eef4c01040d76174cbe (patch) | |
tree | e052e8beacb8578b588a2ab84990d70593b8e496 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | d1bd4a792d3961a04e6154118816b00167aad91a (diff) |
tpm: fix a kernel memory leak in tpm-sysfs.c
While cleaning up sysfs callback that prints EK we discovered a kernel
memory leak. This commit fixes the issue by zeroing the buffer used for
TPM command/response.
The leak happen when we use either tpm_vtpm_proxy, tpm_ibmvtpm or
xen-tpmfront.
Cc: [email protected]
Fixes: 0883743825e3 ("TPM: sysfs functions consolidation")
Reported-by: Jason Gunthorpe <[email protected]>
Tested-by: Stefan Berger <[email protected]>
Signed-off-by: Jarkko Sakkinen <[email protected]>
Signed-off-by: James Morris <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions