Skip to contentSkip to conversation

Patch "tpm xen: Remove bogus tpm_chip_unregister" has been added to the 4.4-stable tree

PATCH [email protected] 1 participant 1 message Jan 4, 2017

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 xen: Remove bogus tpm_chip_unregister

to the 4.4-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-xen-remove-bogus-tpm_chip_unregister.patch
and it can be found in the queue-4.4 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 1f0f30e404b3d8f4597a2d9b77fba55452f8fd0e Mon Sep 17 00:00:00 2001

From: Jason Gunthorpe <[email protected]>
Date: Wed, 26 Oct 2016 16:28:45 -0600
Subject: tpm xen: Remove bogus tpm_chip_unregister

From: Jason Gunthorpe <[email protected]>

commit 1f0f30e404b3d8f4597a2d9b77fba55452f8fd0e upstream.

tpm_chip_unregister can only be called after tpm_chip_register. devm manages the allocation so no unwind is needed here.

Fixes afb5abc262e96 ("tpm: two-phase chip management functions")
---
 drivers/char/tpm/xen-tpmfront.c |    1 -
 1 file changed, 1 deletion(-)
drivers/char/tpm/xen-tpmfront.c +0 -1
@@ -305,7 +305,6 @@ static int tpmfront_probe(struct xenbus_
 	rv = setup_ring(dev, priv);
 	if (rv) {
 		chip = dev_get_drvdata(&dev->dev);
-		tpm_chip_unregister(chip);
 		ring_free(priv);
 		return rv;
 	}

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

queue-4.4/tpm-xen-remove-bogus-tpm_chip_unregister.patch