Re: [PATCH][next] dmaengine: ti: k3-udma: Use struct_size() in kzalloc()

From: Vinod Koul
Date: Wed Jun 24 2020 - 03:27:19 EST


On 23-06-20, 22:56, Joe Perches wrote:
> On Wed, 2020-06-24 at 11:25 +0530, Vinod Koul wrote:
> > On 19-06-20, 17:43, Gustavo A. R. Silva wrote:
> > > Make use of the struct_size() helper instead of an open-coded version
> > > in order to avoid any potential type mistakes.
> > >
> > > This code was detected with the help of Coccinelle and, audited and
> > > fixed manually.
> > >
> > > Addresses-KSPP-ID: https://github.com/KSPP/linux/issues/83
>
> Is this odd tag really useful?

Not at all :)

--
~Vinod