diff options
author | Jarkko Sakkinen | 2015-03-01 22:55:47 +0100 |
---|---|---|
committer | Peter Huewe | 2015-03-05 23:41:46 +0100 |
commit | d972b0523fa99358b2a0bafd85fe913b5d4b150a (patch) | |
tree | 2d519924db9816d6698476d31148d23dba95be78 /lib/bch.c | |
parent | tpm/ibmvtpm: Additional LE support for tpm_ibmvtpm_send (diff) | |
download | kernel-qcow2-linux-d972b0523fa99358b2a0bafd85fe913b5d4b150a.tar.gz kernel-qcow2-linux-d972b0523fa99358b2a0bafd85fe913b5d4b150a.tar.xz kernel-qcow2-linux-d972b0523fa99358b2a0bafd85fe913b5d4b150a.zip |
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: 313d21eeab92 ("tpm: device class for tpm")
Fixes: afb5abc262e9 ("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>
Diffstat (limited to 'lib/bch.c')
0 files changed, 0 insertions, 0 deletions