Re: [PATCH 2/7] tpm: reorganize sysfs files - Updated patch

Andrew Morton
2006-04-11T19:19:37Z

Kylene Jo Hall <kjhall@us.ibm.com> wrote:
>
> > Does that look OK?
>
> No this is not ok because in several of these cases the response to the
> command is longer than tpm_cap thus the reason for the hardcoded size.

OK.

> I can put in a max function though that compares the size of the
> response and the tpm_cap. The read functions will make sure the
> response does not overflow the buffer should that length ever change in
> the future.

Well, pretty much anything which will automatically increase the size of
that array in response to changing data structures would suit, thanks.