Re: [PATCHv3 ath-next] wifi: ath11k: use kzalloc_flex
Baochen Qiang <[email protected]> Mon, 1 Jun 2026 11:24:57 +0800
| Newsgroups | org.infradead.lists.ath11k,org.kernel.vger.linux-hardening,org.kernel.vger.linux-kernel,org.kernel.vger.linux-wireless |
|---|---|
| Message-ID | <[email protected]> |
On 4/29/2026 4:50 AM, Rosen Penev wrote: > Convert kzalloc_obj + kcalloc to kzalloc_flex to save an allocation. > > Add __counted_by to get extra runtime analysis. Move counting variable > assignment immediately after allocation before any potential accesses. > kzalloc_flex does this anyway for GCC >= 15. > > Signed-off-by: Rosen Penev <[email protected]> Reviewed-by: Baochen Qiang <[email protected]>