[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220310212523.633287d4@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com>
Date: Thu, 10 Mar 2022 21:25:23 -0800
From: Jakub Kicinski <kuba@...nel.org>
To: Alex Elder <elder@...aro.org>
Cc: davem@...emloft.net, djakov@...nel.org, bjorn.andersson@...aro.org,
mka@...omium.org, evgreen@...omium.org, cpratapa@...eaurora.org,
avuyyuru@...eaurora.org, jponduru@...eaurora.org,
subashab@...eaurora.org, elder@...nel.org, netdev@...r.kernel.org,
linux-arm-msm@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH net-next v2 6/7] net: ipa: embed interconnect array in
the power structure
On Wed, 9 Mar 2022 13:20:36 -0600 Alex Elder wrote:
> - power = kzalloc(sizeof(*power), GFP_KERNEL);
> + size = data->interconnect_count * sizeof(power->interconnect[0]);
> + power = kzalloc(sizeof(*power) + size, GFP_KERNEL);
struct_size(), can be a follow up
Powered by blists - more mailing lists