Skip to content

Commit

Permalink
TPM: revert the list handling logic fixed in 398a1e7
Browse files Browse the repository at this point in the history
Mimi reported that afb5abc reverts the fix in 398a1e7. This patch
reverts it back.

Fixes: afb5abc ("tpm: two-phase chip management functions")
Reported-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Acked-by: Peter Huewe <PeterHuewe@gmx.de>
  • Loading branch information
Jarkko Sakkinen committed Nov 9, 2015
1 parent eb8ed1e commit b1a4144
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/char/tpm/tpm-chip.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ int tpm_chip_register(struct tpm_chip *chip)

/* 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;
Expand Down

0 comments on commit b1a4144

Please sign in to comment.