diff options
author | Stefan Berger | 2016-11-07 13:14:33 +0100 |
---|---|---|
committer | Jarkko Sakkinen | 2016-11-28 00:31:31 +0100 |
commit | 6804f6bba09997393904a112f2043963a8e08abf (patch) | |
tree | ba8fc05633ceb4f71eaa0a719c1ef1f5840b6601 /drivers/char/tpm/tpm_vtpm_proxy.c | |
parent | tpm: define a generic open() method for ascii & bios measurements (diff) | |
download | kernel-qcow2-linux-6804f6bba09997393904a112f2043963a8e08abf.tar.gz kernel-qcow2-linux-6804f6bba09997393904a112f2043963a8e08abf.tar.xz kernel-qcow2-linux-6804f6bba09997393904a112f2043963a8e08abf.zip |
tpm: Only call pm_runtime_get_sync if device has a parent
Only call pm_runtime_get_sync if the device has a parent. This
change fixes a crash in the tpm_vtpm_proxy driver since that
driver does not have a parent device.
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Diffstat (limited to 'drivers/char/tpm/tpm_vtpm_proxy.c')
0 files changed, 0 insertions, 0 deletions