tpm: missing tpm_chip_put in tpm_get_random()
authorJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Fri, 9 May 2014 11:23:10 +0000 (14:23 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Sep 2014 16:03:57 +0000 (09:03 -0700)
commitd4281c33c1086d80b2a5e3cd6081752e75795833
tree7b7a9f6e397360fcf3f79f5487e1a863a4c5a4d1
parent79943632c58a32b9faf8513d40a8120946cdf35c
tpm: missing tpm_chip_put in tpm_get_random()

commit 3e14d83ef94a5806a865b85b513b4e891923c19b upstream.

Regression in 41ab999c. Call to tpm_chip_put is missing. This
will cause TPM device driver not to unload if tmp_get_random()
is called.

Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/tpm/tpm.c