From: Randy Dunlap <[email protected]>
kfree(devname) on the misc_register() failure path.
Otherwise it is lost forever.
Signed-off-by: Randy Dunlap <[email protected]>
---
drivers/char/tpm/tpm.c | 1 +
1 files changed, 1 insertion(+)
--- linux-2618-rc1mm1.orig/drivers/char/tpm/tpm.c
+++ linux-2618-rc1mm1/drivers/char/tpm/tpm.c
@@ -1141,6 +1141,7 @@ struct tpm_chip *tpm_register_hardware(s
put_device(dev);
clear_bit(chip->dev_num, dev_mask);
kfree(chip);
+ kfree(devname);
return NULL;
}
---
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]