Skip to contentSkip to conversation

Patch "TPM: revert the list handling logic fixed in 398a1e7" has been added to the 4.3-stable tree

PATCH [email protected] 1 participant 1 message Feb 13, 2016

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

TPM: revert the list handling logic fixed in 398a1e7

to the 4.3-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
tpm-revert-the-list-handling-logic-fixed-in-398a1e7.patch
and it can be found in the queue-4.3 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Quoted 1 line

From b1a4144a695ff4a6834a2680600f36f991fa4926 Mon Sep 17 00:00:00 2001

From: Jarkko Sakkinen <[email protected]>
Date: Mon, 2 Nov 2015 19:55:29 +0200
Subject: TPM: revert the list handling logic fixed in 398a1e7

From: Jarkko Sakkinen <[email protected]>

commit b1a4144a695ff4a6834a2680600f36f991fa4926 upstream.

Mimi reported that afb5abc reverts the fix in 398a1e7. This patch reverts it back.

Fixes afb5abc262e9 ("tpm: two-phase chip management functions")
---
 drivers/char/tpm/tpm-chip.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/char/tpm/tpm-chip.c +1 -1
@@ -231,7 +231,7 @@ int tpm_chip_register(struct tpm_chip *c
 
 	/* Make the chip available. */
 	spin_lock(&driver_lock);
-	list_add_rcu(&chip->list, &tpm_chip_list);
+	list_add_tail_rcu(&chip->list, &tpm_chip_list);
 	spin_unlock(&driver_lock);
 
 	chip->flags |= TPM_CHIP_FLAG_REGISTERED;

Patches currently in stable-queue which might be from [email protected] are

queue-4.3/tpm-revert-the-list-handling-logic-fixed-in-398a1e7.patch queue-4.3/tpm_tis-free-irq-after-probing.patch queue-4.3/tpm-tpm_crb-fix-unaligned-read-of-the-command-buffer-address.patch