Thread (20 messages) 20 messages, 4 authors, 2019-02-13

Re: [PATCH v4 1/2] tpm: Unify the send callback behaviourä

From: Stefan Berger <stefanb@linux.ibm.com>
Date: 2019-02-08 20:32:42
Also in: linux-security-module, lkml, stable

On 2/8/19 3:23 PM, Jarkko Sakkinen wrote:
On Fri, Feb 08, 2019 at 02:27:31PM -0500, Stefan Berger wrote:
quoted
On 2/8/19 2:17 PM, Jarkko Sakkinen wrote:
quoted
   */
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
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help