Commit 1f0f30e4 authored by Jason Gunthorpe's avatar Jason Gunthorpe Committed by Jarkko Sakkinen
Browse files

tpm xen: Remove bogus tpm_chip_unregister



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

Cc: stable@vger.kernel.org
Fixes: afb5abc2 ("tpm: two-phase chip management functions")
Reviewed-by: default avatarJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: default avatarJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
parent d1d253cf
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -307,7 +307,6 @@ static int tpmfront_probe(struct xenbus_device *dev,
	rv = setup_ring(dev, priv);
	if (rv) {
		chip = dev_get_drvdata(&dev->dev);
		tpm_chip_unregister(chip);
		ring_free(priv);
		return rv;
	}