diff options
author | Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> | 2017-06-20 11:38:02 +0200 |
---|---|---|
committer | James Morris <james.l.morris@oracle.com> | 2017-07-07 09:49:24 +1000 |
commit | 13b47cfcfc60495cde216eef4c01040d76174cbe (patch) | |
tree | e052e8beacb8578b588a2ab84990d70593b8e496 /drivers/char/tpm/tpm_crb.c | |
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: stable@vger.kernel.org
Fixes: 0883743825e3 ("TPM: sysfs functions consolidation")
Reported-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Tested-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: James Morris <james.l.morris@oracle.com>
Diffstat (limited to 'drivers/char/tpm/tpm_crb.c')
0 files changed, 0 insertions, 0 deletions