Skip to content

Commit 00a0de0

Browse files
jgunthorpegregkh
authored andcommitted
tpm xen: Remove bogus tpm_chip_unregister
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: afb5abc ("tpm: two-phase chip management functions") Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent f93777c commit 00a0de0

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

drivers/char/tpm/xen-tpmfront.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,6 @@ static int tpmfront_probe(struct xenbus_device *dev,
305305
rv = setup_ring(dev, priv);
306306
if (rv) {
307307
chip = dev_get_drvdata(&dev->dev);
308-
tpm_chip_unregister(chip);
309308
ring_free(priv);
310309
return rv;
311310
}

0 commit comments

Comments
 (0)