aboutsummaryrefslogtreecommitdiffstats
path: root/security/security.c
diff options
context:
space:
mode:
authorStefan Berger <stefanb@linux.vnet.ibm.com>2017-04-17 21:58:26 -0400
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>2017-04-25 00:27:18 +0300
commit8979b02aaf1d6de8d52cc143aa4da961ed32e5a2 (patch)
tree2b6485a03914ec7d0a35853486b2ee4d4b07c883 /security/security.c
parenttpm_tis: convert to using locality callbacks (diff)
downloadlinux-dev-8979b02aaf1d6de8d52cc143aa4da961ed32e5a2.tar.xz
linux-dev-8979b02aaf1d6de8d52cc143aa4da961ed32e5a2.zip
tpm: Fix reference count to main device
The main device is currently not properly released due to one additional reference to the 'devs' device which is only released in case of a TPM 2. So, also get the additional reference only in case of a TPM2. Fixes: fdc915f7f719 ("tpm: expose spaces via a device link /dev/tpmrm<n>") Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com> Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> Tested-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Diffstat (limited to 'security/security.c')
0 files changed, 0 insertions, 0 deletions