linux-stable/drivers/char/tpm
Jason Gunthorpe c4484f791c tpm: vtpm_proxy: conditionally call tpm_chip_unregister
If tpm_chip_register fails vtpm must not call tpm_chip_unregister:

> [   58.271017]  [<ffffffff8155bd32>] dpm_sysfs_remove+0x22/0x60
> [   58.271017]  [<ffffffff8154e438>] device_del+0x58/0x280
> [   58.271017]  [<ffffffffa024c020>] tpm_chip_unregister+0x40/0xb0 [tpm]
> [   58.271017]  [<ffffffffa0292360>] vtpm_proxy_fops_release+0x40/0x60 [tpm_vtpm_proxy]

[jarkko.sakkinen@linux.intel.com: cleaned up unneeded goto away]

Signed-off-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Tested-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Tested-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
2016-11-28 01:31:33 +02:00
..
st33zp24 tpm/st33zp24: Remove useless tpm_gen_interrupt 2016-09-15 16:04:21 +03:00
Kconfig tpm_tis: Allow tpm_tis to be bound using DT 2016-11-28 01:31:31 +02:00
Makefile tpm: redefine read_log() to handle ACPI/OF at runtime 2016-11-28 01:31:32 +02:00
tpm-chip.c tpm: Fix handling of missing event log 2016-11-28 01:31:32 +02:00
tpm-dev.c tpm: fix a race condition in tpm2_unseal_trusted() 2016-09-15 16:04:21 +03:00
tpm-interface.c tpm: Only call pm_runtime_get_sync if device has a parent 2016-11-28 01:31:31 +02:00
tpm-sysfs.c tpm: drop tpm1_chip_register(/unregister) 2016-11-28 01:31:32 +02:00
tpm.h tpm: have event log use the tpm_chip 2016-11-28 01:31:32 +02:00
tpm2-cmd.c char: tpm: fix kerneldoc tpm2_unseal_trusted name typo 2016-11-28 01:31:31 +02:00
tpm_acpi.c tpm: Fix handling of missing event log 2016-11-28 01:31:32 +02:00
tpm_atmel.c tpm: Remove useless priv field in struct tpm_vendor_specific 2016-06-25 17:26:35 +03:00
tpm_atmel.h tpm: Remove useless priv field in struct tpm_vendor_specific 2016-06-25 17:26:35 +03:00
tpm_crb.c tmp/tpm_crb: implement runtime pm for tpm_crb 2016-11-28 01:31:30 +02:00
tpm_eventlog.c tpm: Fix handling of missing event log 2016-11-28 01:31:32 +02:00
tpm_eventlog.h tpm: redefine read_log() to handle ACPI/OF at runtime 2016-11-28 01:31:32 +02:00
tpm_i2c_atmel.c tpm: Factor out common startup code 2016-07-19 17:43:38 +03:00
tpm_i2c_infineon.c tpm: Factor out common startup code 2016-07-19 17:43:38 +03:00
tpm_i2c_nuvoton.c tpm: Add TPM 2.0 support to the Nuvoton i2c driver (NPCT6xx family) 2016-07-19 17:43:38 +03:00
tpm_ibmvtpm.c tpm: fix for typo in tpm/tpm_ibmvtpm.c 2016-06-25 17:26:35 +03:00
tpm_ibmvtpm.h tpm_ibmvtpm: properly handle interrupted packet receptions 2015-12-20 15:27:12 +02:00
tpm_infineon.c tpm: Get rid of chip->pdev 2016-06-25 17:26:35 +03:00
tpm_nsc.c tpm: Remove useless priv field in struct tpm_vendor_specific 2016-06-25 17:26:35 +03:00
tpm_of.c tpm: Fix handling of missing event log 2016-11-28 01:31:32 +02:00
tpm_ppi.c tpm: move the PPI attributes to character device directory. 2015-10-19 01:01:20 +02:00
tpm_tis.c tpm_tis: Allow tpm_tis to be bound using DT 2016-11-28 01:31:31 +02:00
tpm_tis_core.c tpm tis: Do not print timeout messages twice 2016-11-28 01:31:30 +02:00
tpm_tis_core.h tpm/tpm_tis: Split tpm_tis driver into a core and TCG TIS compliant phy 2016-06-25 17:28:57 +03:00
tpm_tis_spi.c tpm/tpm_tis_spi: Add support for spi phy 2016-06-25 17:28:57 +03:00
tpm_vtpm_proxy.c tpm: vtpm_proxy: conditionally call tpm_chip_unregister 2016-11-28 01:31:33 +02:00
xen-tpmfront.c tpm xen: Remove bogus tpm_chip_unregister 2016-11-28 01:31:30 +02:00