Re: [PATCH wireless-next 3/7] wifi: brcmsmac: embed macstat_snapshot in brcms_core
From: Arend van Spriel
Date: Tue Nov 24 2026 - 15:14:35 EST
On Tue, 10 Nov 2026 20:25:50 -0800, Rosen Penev <rosenp@xxxxxxxxx> wrote:
> The MAC statistics snapshot is a fixed-size struct with the same
> lifetime as struct brcms_core. Embed it directly instead of allocating
> it separately, removing one kzalloc()/kfree() pair and its OOM error
> path.
>
> Signed-off-by: Rosen Penev <rosenp@xxxxxxxxx>
> ---
> .../wireless/broadcom/brcm80211/brcmsmac/debug.c | 2 +-
> .../net/wireless/broadcom/brcm80211/brcmsmac/main.c | 13 ++-----------
> .../net/wireless/broadcom/brcm80211/brcmsmac/main.h | 2 +-
> 3 files changed, 4 insertions(+), 13 deletions(-)
Acked-by: Arend van Spriel <arend.vanspriel@xxxxxxxxxxxx>
Regards,
Arend