[PATCH] tpm: tpm-new-12-sysfs-files-fix-fix-fix

From: Kylene Jo Hall
Date: Thu Apr 13 2006 - 13:51:33 EST


Fix a buffer size that got set to small for the return size.

Signed-off-by: Kylie Hall <kjhall@xxxxxxxxxx>
---
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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/