On Thu, Oct 10, 2019 at 12:28:30AM +0300, Jarkko Sakkinen wrote: > commit 2677ca98ae377517930c183248221f69f771c921 upstream > > Use tpm_try_get_ops() in tpm-sysfs.c so that we can consider moving > other decorations (locking, localities, power management for example) > inside it. This direction can be of course taken only after other call > sites for tpm_transmit() have been treated in the same way. > > Signed-off-by: Jarkko Sakkinen <[email protected]> > Reviewed-by: Stefan Berger <[email protected]> > Tested-by: Stefan Berger <[email protected]> > Reviewed-by: Jerry Snitselaar <[email protected]> > Reviewed-by: James Bottomley <[email protected]> > Tested-by: Alexander Steffen <[email protected]> > --- > drivers/char/tpm/tpm-sysfs.c | 134 ++++++++++++++++++++++------------- > 1 file changed, 83 insertions(+), 51 deletions(-)
This is already in the 4.14.148 4.19.78 5.1 releases. greg k-h

