Re: [PATCH RESEND] tpm: eventlog: Replace zero-length array with flexible-array member

From: Jarkko Sakkinen
Date: Thu May 14 2020 - 07:05:33 EST


On Wed, 2020-05-13 at 18:14 -0500, Gustavo A. R. Silva wrote:
> On Thu, May 14, 2020 at 12:39:05AM +0300, Jarkko Sakkinen wrote:
> > > [1] https://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html
> > > [2] https://github.com/KSPP/linux/issues/21
> > > [3] commit 76497732932f ("cxgb3/l2t: Fix undefined behaviour")
> > > [4] https://github.com/KSPP/linux/issues/43
> > >
> > > Signed-off-by: Gustavo A. R. Silva <gustavo@xxxxxxxxxxxxxx>
> >
> > Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@xxxxxxxxxxxxxxx>
> >
>
> Hi Jarkko,
>
> Thanks for your RB.
>
> There is a v2 of this patch:
>
> 20200508163826.GA768@embeddedor/">https://lore.kernel.org/lkml/20200508163826.GA768@embeddedor/
>
> Thanks
> --
> Gustavo

Yup,

http://git.infradead.org/users/jjs/linux-tpmdd.git/commit/47c18d91f4adb2ca164c8dbee861543b4466167d

Does this look correct?


/Jarkko