Skip to contentSkip to conversation

tpm: fix bug introduced by the /proc/misc

PATCH New Kylene Jo Hall 1 participant 1 message Jun 29, 2005 TPM device driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

Thanks,
Kylie

---
Index: drivers/char/tpm/tpm.c
===================================================================
RCS file: /cvsroot/tpmdd/tpmdd/drivers/char/tpm/tpm.c,v retrieving revision 1.28

drivers/char/tpm/tpm.c +1 -1
diff -u -p -r1.28 tpm.c
@@ -488,6 +497,6 @@ void __devexit tpm_remove(struct 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);