[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230117112141.GB15213@altlinux.org>
Date: Tue, 17 Jan 2023 14:21:41 +0300
From: "Alexey V. Vissarionov" <gremlin@...linux.org>
To: Kalle Valo <kvalo@...nel.org>
Cc: "Alexey V. Vissarionov" <gremlin@...linux.org>,
Arend van Spriel <aspriel@...il.com>,
Franky Lin <franky.lin@...adcom.com>,
Hante Meuleman <hante.meuleman@...adcom.com>,
"David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>,
Alvin Šipraga <alsi@...g-olufsen.dk>,
Chi-hsien Lin <chi-hsien.lin@...ress.com>,
Ahmad Fatoum <a.fatoum@...gutronix.de>,
Wataru Gohda <wataru.gohda@...ress.com>,
Sebastian Andrzej Siewior <bigeasy@...utronix.de>,
Wolfram Sang <wsa+renesas@...g-engineering.com>,
Pieter-Paul Giesberts <pieter-paul.giesberts@...adcom.com>,
linux-wireless@...r.kernel.org,
brcm80211-dev-list.pdl@...adcom.com,
SHA-cyfmac-dev-list@...ineon.com, netdev@...r.kernel.org,
lvc-project@...uxtesting.org
Subject: Re: [PATCH] wifi: brcmfmac: Fix allocation size
On 2023-01-17 13:05:24 +0200, Kalle Valo wrote:
>> - buf_size += (max_idx + 1) * sizeof(pkt);
>> + buf_size += (max_idx + 1) * sizeof(struct sk_buff);
> Wouldn't sizeof(*pkt) be better?
Usually sizeof(type) produces less errors than sizeof(var)...
> Just like with sizeof(*rfi) few lines above.
... but to keep consistency sizeof(*pkt) would also be ok.
--
Alexey V. Vissarionov
gremlin ПРИ altlinux ТЧК org; +vii-cmiii-ccxxix-lxxix-xlii
GPG: 0D92F19E1C0DC36E27F61A29CD17E2B43D879005 @ hkp://keys.gnupg.net
Download attachment "signature.asc" of type "application/pgp-signature" (802 bytes)
Powered by blists - more mailing lists