tpm: tpm-new-12-sysfs-files-fix-fix-fix
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.
Signed-off-by Kylie Hall <[email protected]>
--- 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);