Messages in this thread Patch in this message | | | Subject | [PATCH] tpm: tpm-new-12-sysfs-files-fix-fix-fix | From | Kylene Jo Hall <> | Date | Thu, 13 Apr 2006 12:51:56 -0500 |
| |
Fix a buffer size that got set to small for the return size.
Signed-off-by: Kylie Hall <kjhall@us.ibm.com> --- drivers/char/tpm/tpm.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-)
--- linux-2.6.17-rc1-mm2/drivers/char/tpm/tpm.c 2006-04-12 16:39:40.191345000 -0500 +++ linux-2.6.17-rc1/drivers/char/tpm/tpm.c 2006-04-13 12:56:32.717377500 -0500 @@ -582,7 +584,7 @@ EXPORT_SYMBOL_GPL(tpm_continue_selftest) ssize_t tpm_show_enabled(struct device * dev, struct device_attribute * attr, char *buf) { - u8 data[max_t(int, ARRAY_SIZE(tpm_cap), 30)]; + u8 data[max_t(int, ARRAY_SIZE(tpm_cap), 35)]; ssize_t rc; struct tpm_chip *chip = dev_get_drvdata(dev);
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |