Re: [PATCH wireless-next 5/7] wifi: brcmsmac: embed brcms_protection in brcms_c_info

From: Arend van Spriel

Date: Tue Nov 24 2026 - 15:14:41 EST


On Tue, 10 Nov 2026 20:25:52 -0800, Rosen Penev <rosenp@xxxxxxxxx> wrote:
> The protection settings (struct brcms_protection) have the same
> lifetime as struct brcms_c_info. Embed them directly instead of
> allocating them separately, removing one kzalloc()/kfree() pair and
> its OOM error path.
>
> Signed-off-by: Rosen Penev <rosenp@xxxxxxxxx>
> ---
> .../broadcom/brcm80211/brcmsmac/channel.c | 6 ++--
> .../broadcom/brcm80211/brcmsmac/main.c | 31 +++++++------------
> .../broadcom/brcm80211/brcmsmac/main.h | 2 +-
> 3 files changed, 16 insertions(+), 23 deletions(-)

Acked-by: Arend van Spriel <arend.vanspriel@xxxxxxxxxxxx>

Regards,
Arend