Commit 9a936eb928c1a253c2e5d66b947688bdc55094a6

Authored by Kylene Jo Hall
Committed by Linus Torvalds
1 parent ee93b43a05

[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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/char/tpm/tpm.c
... ... @@ -464,7 +464,7 @@
464 464  
465 465 pci_set_drvdata(pci_dev, NULL);
466 466 misc_deregister(&chip->vendor->miscdev);
467   - kfree(&chip->vendor->miscdev.name);
  467 + kfree(chip->vendor->miscdev.name);
468 468  
469 469 sysfs_remove_group(&pci_dev->dev.kobj, chip->vendor->attr_group);
470 470