diff options
author | Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> | 2016-02-08 23:31:08 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-04-12 19:08:47 +0300 |
commit | 158c0029a8861591d42c6ad144d09cbd2c2dfe81 (patch) | |
tree | 718a1e827a89e44cfc02db38b150c5eb3de2be6b /arch/arm/mach-nomadik | |
parent | 062c8a4ff40fedf82c1ec177a63b06c41801c2e9 (diff) | |
download | linux-158c0029a8861591d42c6ad144d09cbd2c2dfe81.tar.xz |
tpm: fix the cleanup of struct tpm_chip
commit 8e0ee3c9faed7ca68807ea45141775856c438ac0 upstream.
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>
Reviewed-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/arm/mach-nomadik')
0 files changed, 0 insertions, 0 deletions