]> err.no Git - linux-2.6/commitdiff
[PATCH] tpm: fix bug introduced by the /proc/misc
authorKylene Jo Hall <kjhall@us.ibm.com>
Thu, 30 Jun 2005 09:58:50 +0000 (02:58 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 30 Jun 2005 15:45:09 +0000 (08:45 -0700)
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>
drivers/char/tpm/tpm.c

index 854475c54f0e78630e19ce098b73ca76511ba9cb..049d128ae7f07de2605cd5cd2e3d4c4efdba26ac 100644 (file)
@@ -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);