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:19:08 +0000 (09:19 -0700)
commit9124fa935352e7041fbd5e2ba9574aa32b61e97c
treec1e7793daa1c913cf56a3b4e6593733992e6b41d
parentc8834e3a9e8f7079e4b9876c18f26dd6d19506cf
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-interface.c