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)
committerPeter Huewe <peterhuewe@gmx.de>
Tue, 29 Jul 2014 21:10:55 +0000 (23:10 +0200)
commit3e14d83ef94a5806a865b85b513b4e891923c19b
treef5f24b21204faa237dfba9069703e6f45d66ddd8
parentb49e1043c48dac23f64fba684d31c4a96c1ffaa0
tpm: missing tpm_chip_put in tpm_get_random()

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.

Cc: <stable@vger.kernel.org> # 3.7+
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
drivers/char/tpm/tpm-interface.c