lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-ID: <168381113342.27145.15828757976515232623.kvalo@kernel.org> Date: Thu, 11 May 2023 13:18:55 +0000 (UTC) From: Kalle Valo <kvalo@...nel.org> To: Christophe JAILLET <christophe.jaillet@...adoo.fr> Cc: Amitkumar Karwar <amitkarwar@...il.com>, Ganapathi Bhat <ganapathi017@...il.com>, Sharvari Harisangam <sharvari.harisangam@....com>, Xinming Hu <huxinming820@...il.com>, "David S. Miller" <davem@...emloft.net>, Eric Dumazet <edumazet@...gle.com>, Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>, chunfan chen <jeffc@...vell.com>, linux-kernel@...r.kernel.org, kernel-janitors@...r.kernel.org, Christophe JAILLET <christophe.jaillet@...adoo.fr>, Xinming Hu <huxm@...vell.com>, Amitkumar Karwar <akarwar@...vell.com>, linux-wireless@...r.kernel.org, netdev@...r.kernel.org Subject: Re: [wireless] wifi: mwifiex: Fix the size of a memory allocation in mwifiex_ret_802_11_scan() Christophe JAILLET <christophe.jaillet@...adoo.fr> wrote: > The type of "mwifiex_adapter->nd_info" is "struct cfg80211_wowlan_nd_info", > not "struct cfg80211_wowlan_nd_match". > > Use struct_size() to ease the computation of the needed size. > > The current code over-allocates some memory, so is safe. > But it wastes 32 bytes. > > Fixes: 7d7f07d8c5d3 ("mwifiex: add wowlan net-detect support") > Signed-off-by: Christophe JAILLET <christophe.jaillet@...adoo.fr> > Reviewed-by: Simon Horman <simon.horman@...igine.com> Patch applied to wireless-next.git, thanks. d9aef04fcfa8 wifi: mwifiex: Fix the size of a memory allocation in mwifiex_ret_802_11_scan() -- https://patchwork.kernel.org/project/linux-wireless/patch/7a6074fb056d2181e058a3cc6048d8155c20aec7.1683371982.git.christophe.jaillet@wanadoo.fr/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
Powered by blists - more mailing lists