diff options
author | Kylene Jo Hall <kjhall@us.ibm.com> | 2005-06-30 11:58:50 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-30 17:45:09 +0200 |
commit | 9a936eb928c1a253c2e5d66b947688bdc55094a6 (patch) | |
tree | 5fbd22dc7b43bc8d27d06360bb633c8d1a3164ec /drivers/char/tpm/tpm.c | |
parent | [PATCH] ppc32: use correct register names in arch/ppc/kernel/relocate_kernel.S (diff) | |
download | linux-9a936eb928c1a253c2e5d66b947688bdc55094a6.tar.xz linux-9a936eb928c1a253c2e5d66b947688bdc55094a6.zip |
[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 <kjhall@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/char/tpm/tpm.c')
-rw-r--r-- | drivers/char/tpm/tpm.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |