RE: [PATCH] mwifiex: duplicate static structs used in driver instances

From: Ping-Ke Shih
Date: Fri Aug 09 2024 - 04:50:58 EST


Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> wrote:
> + wiphy->bands[NL80211_BAND_2GHZ] = devm_kmemdup(adapter->dev,
> + &mwifiex_band_2ghz,
> + sizeof(mwifiex_band_2ghz),
> + GFP_KERNEL);

It seems like you forget to free the duplicate memory somewhere?