Skip to content

Commit

Permalink
[PATCH] tpm: fix bug introduced by the /proc/misc
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kylene Jo Hall authored and Linus Torvalds committed Jun 30, 2005
1 parent ee93b43 commit 9a936eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/char/tpm/tpm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 9a936eb

Please sign in to comment.