From: Kylene Jo Hall Date: Thu, 30 Jun 2005 09:58:50 +0000 (-0700) Subject: [PATCH] tpm: fix bug introduced by the /proc/misc X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9a936eb928c1a253c2e5d66b947688bdc55094a6;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git [PATCH] tpm: fix bug introduced by the /proc/misc In fixing the /proc/misc problem that was reported last week where the tpm module name was being obfuscated in /proc/misc I introduced a bug in the module unloading code. This patch fixes the problem. Signed-off-by: Kylene Hall Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/char/tpm/tpm.c b/drivers/char/tpm/tpm.c index 854475c54f0e..049d128ae7f0 100644 --- a/drivers/char/tpm/tpm.c +++ b/drivers/char/tpm/tpm.c @@ -464,7 +464,7 @@ void __devexit tpm_remove(struct pci_dev *pci_dev) pci_set_drvdata(pci_dev, NULL); misc_deregister(&chip->vendor->miscdev); - kfree(&chip->vendor->miscdev.name); + kfree(chip->vendor->miscdev.name); sysfs_remove_group(&pci_dev->dev.kobj, chip->vendor->attr_group);