summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>2016-02-08 23:31:08 +0300
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>2016-02-10 05:12:08 +0300
commit8e0ee3c9faed7ca68807ea45141775856c438ac0 (patch)
treeb458057391012211f0a69e22270579f2639d4d7d /tools/perf/scripts/python/export-to-postgresql.py
parent72c91ce8523ae5828fe5e4417ae0aaab53707a08 (diff)
downloadlinux-8e0ee3c9faed7ca68807ea45141775856c438ac0.tar.xz
tpm: fix the cleanup of struct tpm_chip
If the initialization fails before tpm_chip_register(), put_device() will be not called, which causes release callback not to be called. This patch fixes the issue by adding put_device() to devres list of the parent device. Fixes: 313d21eeab ("tpm: device class for tpm") Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> cc: stable@vger.kernel.org Reviewed-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions