Re: [PATCH] tpm: fix call order in tpm-chip.c
From: Peter Hüwe
Date: Sun Mar 01 2015 - 18:02:43 EST
Am Sonntag, 1. März 2015, 22:55:47 schrieb Jarkko Sakkinen:
> - 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().
>
> Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@xxxxxxxxxxxxxxx>
Looks good to me.
Staged it and I'll send out the pull request in the next few days.
(have to catch up mails from traveling)
Thanks,
Peter
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/