kernel_optimize_test/drivers/char/tpm
Jarkko Sakkinen 19913b6db3 tpm: fix call order in tpm-chip.c
- tpm_dev_add_device(): cdev_add() must be done before uevent is
  propagated in order to avoid races.
- tpm_chip_register(): tpm_dev_add_device() must be done as the
  last step before exposing device to the user space in order to
  avoid races.

In addition clarified description in tpm_chip_register().

Fixes: 313d21eeab ("tpm: device class for tpm")
Fixes: afb5abc262 ("tpm: two-phase chip management functions")

Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Reviewed-by: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
2015-03-06 22:35:49 +01:00
..
Kconfig
Makefile
tpm2-cmd.c
tpm_acpi.c
tpm_atmel.c
tpm_atmel.h
tpm_crb.c
tpm_eventlog.c
tpm_eventlog.h
tpm_i2c_atmel.c
tpm_i2c_infineon.c
tpm_i2c_nuvoton.c
tpm_i2c_stm_st33.c
tpm_ibmvtpm.c
tpm_ibmvtpm.h
tpm_infineon.c
tpm_nsc.c
tpm_of.c
tpm_ppi.c
tpm_tis.c
tpm-chip.c
tpm-dev.c
tpm-interface.c
tpm-sysfs.c
tpm.h
xen-tpmfront.c