Commit 9a936eb9 authored by Kylene Jo Hall's avatar Kylene Jo Hall Committed by Linus Torvalds
Browse files

[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: default avatarKylene Hall <kjhall@us.ibm.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent ee93b43a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);