Re: [PATCHv2] platform/x86: panasonic-laptop: simplify allocation of sinf

From: Ilpo Järvinen

Date: Tue Mar 31 2026 - 12:08:44 EST


On Tue, 31 Mar 2026, Gustavo A. R. Silva wrote:

>
>
> On 3/31/26 09:02, Ilpo Järvinen wrote:
> > On Wed, 25 Mar 2026 19:45:25 -0700, Rosen Penev wrote:
> >
> > > Change to a flexible array member to allocate once instead of twice.
> > >
> > > Allows using __counted_by for extra runtime analysis. Move the counting
> > > variable assignment to right after allocation as required by
> > > __counted_by.
>
> This is misinformation and should be phrased differently[1]

Okay. I'll drop the patch for now.

--
i.

>
> -Gustavo
>
> [1]
> https://lore.kernel.org/linux-hardening/37378f49-437f-438b-ad6c-d60480feb306@xxxxxxxxxxxxxx/
>
> > >
> > > Remove + 1 to allocation. It's already done in the previous line.
> > >
> > > [...]
> >
> >
> > Thank you for your contribution, it has been applied to my local
> > review-ilpo-next branch. Note it will show up in the public
> > platform-drivers-x86/review-ilpo-next branch only once I've pushed my
> > local branch there, which might take a while.
> >
> > The list of commits applied:
> > [1/1] platform/x86: panasonic-laptop: simplify allocation of sinf
> > commit: e75869527c720c4ed1458cfbe25e92186950e43a
> >
> > --
> > i.
> >
> >
>