Skip to contentSkip to conversation

tpm: tpm-new-12-sysfs-files-fix-fix-fix

PATCH New Kylene Jo Hall 1 participant 1 message Apr 13, 2006 TPM device driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tpm: tpm-new-12-sysfs-files-fix-fix-fix

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

---
 drivers/char/tpm/tpm.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
drivers/char/tpm/tpm.c +1 -1
@@ -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);