summaryrefslogtreecommitdiff
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>2015-03-02 00:55:47 +0300
committerPeter Huewe <peterhuewe@gmx.de>2015-03-07 00:35:49 +0300
commit19913b6db3aa417d855318c9cf5b40fbc1f28e52 (patch)
treeedc596fc2c6577237680788ace8d2736c9270d3d /net/switchdev/switchdev.c
parent62dfd912ab3b5405b6fe72d0135c37e9648071f1 (diff)
downloadlinux-19913b6db3aa417d855318c9cf5b40fbc1f28e52.tar.xz
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 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions