Re: [PATCH v4 1/2] tpm: Unify the send callback behaviourä
- Date: Fri, 8 Feb 2019 15:32:32 -0500
- From: Stefan Berger <stefanb@xxxxxxxxxxxxx>
- Subject: Re: [PATCH v4 1/2] tpm: Unify the send callback behaviourä
On 2/8/19 3:23 PM, Jarkko Sakkinen wrote:
On Fri, Feb 08, 2019 at 02:27:31PM -0500, Stefan Berger wrote:On 2/8/19 2:17 PM, Jarkko Sakkinen wrote:*/ if (rc > 0) { dev_warn(&chip->dev, "%s: send(): invalid value %d\n", __func__, rc); rc = 0; } Should be fairly safe play now.Unfortuantely it isn't. You seemed to have lost the EXPORT_SYMBOL_GPL(tpm_chip_start/stop) and the tpm_chip_start/stop around the tpm2_shutdown()...OK, now those fixes are back. In tpm_pm_shutdown() case you need also take the lock.
tpm_del_char_device also needs the start/stop! Stefan
/Jarkko
- Follow-Ups:
- Re: [PATCH v4 1/2] tpm: Unify the send callback behaviourä
- From: Jarkko Sakkinen
- Re: [PATCH v4 1/2] tpm: Unify the send callback behaviourä
- References:
- [PATCH v4 0/2] tpm: Unify send() callbacks
- From: Jarkko Sakkinen
- [PATCH v4 1/2] tpm: Unify the send callback behaviour
- From: Jarkko Sakkinen
- Re: [PATCH v4 1/2] tpm: Unify the send callback behaviour
- From: Stefan Berger
- Re: [PATCH v4 1/2] tpm: Unify the send callback behaviour
- From: Jarkko Sakkinen
- Re: [PATCH v4 1/2] tpm: Unify the send callback behaviourä
- From: Jarkko Sakkinen
- Re: [PATCH v4 1/2] tpm: Unify the send callback behaviourä
- From: Stefan Berger
- Re: [PATCH v4 1/2] tpm: Unify the send callback behaviourä
- From: Jarkko Sakkinen
- [PATCH v4 0/2] tpm: Unify send() callbacks
- Prev by Date: Re: [PATCH-tip 00/22] locking/rwsem: Rework rwsem-xadd & enable new rwsem features
- Next by Date: RE: [Breakage] Git v2.21.0-rc0 - t5318 (NonStop)
- Previous by thread: Re: [PATCH v4 1/2] tpm: Unify the send callback behaviourä
- Next by thread: Re: [PATCH v4 1/2] tpm: Unify the send callback behaviourä
- Index(es):