summaryrefslogtreecommitdiffstats
path: root/drivers/char/nvram.c
diff options
context:
space:
mode:
authorJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>2016-02-08 22:31:08 +0200
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>2016-02-10 04:12:08 +0200
commit8e0ee3c9faed7ca68807ea45141775856c438ac0 (patch)
treeb458057391012211f0a69e22270579f2639d4d7d /drivers/char/nvram.c
parent72c91ce8523ae5828fe5e4417ae0aaab53707a08 (diff)
downloadlinux-8e0ee3c9faed7ca68807ea45141775856c438ac0.tar.bz2
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 'drivers/char/nvram.c')
0 files changed, 0 insertions, 0 deletions