linux_dsm_epyc7002/drivers/char/tpm
Richard MUSIL 5bd91f18be tpm.c: fix crash during device removal
The clean up procedure now uses platform device "release" callback to
handle memory clean up.  For this purpose "release" function callback was
added to struct tpm_vendor_specific, so hw device driver provider can get
called when it is safe to remove all allocated resources.

This is supposed to fix a bug in device removal, where device while in
receive function (waiting on timeout) was prone to segfault, if the
tpm_chip struct was unallocated before the timeout expired (in
tpm_remove_hardware).

Acked-by: Marcel Selhorst <tpm@selhorst.net>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-02-06 10:41:04 -08:00
..
Kconfig Use menuconfig objects II - TPM 2007-07-16 09:05:40 -07:00
Makefile [PATCH] tpm: driver for next generation TPM chips 2006-04-22 09:19:54 -07:00
tpm_atmel.c tpmdd maintainers 2007-08-22 19:52:44 -07:00
tpm_atmel.h tpmdd maintainers 2007-08-22 19:52:44 -07:00
tpm_bios.c tpmdd maintainers 2007-08-22 19:52:44 -07:00
tpm_infineon.c tpm_infineon: add support for devices in mmio space 2007-05-08 11:15:02 -07:00
tpm_nsc.c tpmdd maintainers 2007-08-22 19:52:44 -07:00
tpm_tis.c TPM: fix TIS device driver locality request 2007-11-29 09:24:52 -08:00
tpm.c tpm.c: fix crash during device removal 2008-02-06 10:41:04 -08:00
tpm.h tpm.c: fix crash during device removal 2008-02-06 10:41:04 -08:00