From: Simon Horman <horms@kernel•org>
To: Chen Ni <nichen@iscas•ac.cn>
Cc: louis.peens@corigine•com, kuba@kernel•org, davem@davemloft•net,
edumazet@google•com, pabeni@redhat•com,
yinjun.zhang@corigine•com, johannes.berg@intel•com,
ryno.swart@corigine•com, ziyang.chen@corigine•com,
linma@zju•edu.cn, niklas.soderlund@corigine•com,
oss-drivers@corigine•com, netdev@vger•kernel.org,
linux-kernel@vger•kernel.org
Subject: Re: [PATCH net-next] ntp: fix size argument for kcalloc
Date: Thu, 4 Jul 2024 08:30:59 +0100 [thread overview]
Message-ID: <20240704073059.GV598357@kernel.org> (raw)
In-Reply-To: <20240703025625.1695052-1-nichen@iscas.ac.cn>
On Wed, Jul 03, 2024 at 10:56:25AM +0800, Chen Ni wrote:
> The size argument to kcalloc should be the size of desired structure,
> not the pointer to it.
>
> Fixes: 6402528b7a0b ("nfp: xsk: add AF_XDP zero-copy Rx and Tx support")
> Signed-off-by: Chen Ni <nichen@iscas•ac.cn>
nit: s/ntp/nfp/ in the subject
...
prev parent reply other threads:[~2024-07-04 7:31 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-03 2:56 [PATCH net-next] ntp: fix size argument for kcalloc Chen Ni
2024-07-03 9:16 ` Przemek Kitszel
2024-07-04 9:36 ` Paolo Abeni
2024-07-04 9:41 ` Paolo Abeni
2024-07-04 10:17 ` Przemek Kitszel
2024-07-04 14:21 ` Jakub Kicinski
2024-07-04 5:36 ` Louis Peens
2024-07-04 7:30 ` Simon Horman [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240704073059.GV598357@kernel.org \
--to=horms@kernel$(echo .)org \
--cc=davem@davemloft$(echo .)net \
--cc=edumazet@google$(echo .)com \
--cc=johannes.berg@intel$(echo .)com \
--cc=kuba@kernel$(echo .)org \
--cc=linma@zju$(echo .)edu.cn \
--cc=linux-kernel@vger$(echo .)kernel.org \
--cc=louis.peens@corigine$(echo .)com \
--cc=netdev@vger$(echo .)kernel.org \
--cc=nichen@iscas$(echo .)ac.cn \
--cc=niklas.soderlund@corigine$(echo .)com \
--cc=oss-drivers@corigine$(echo .)com \
--cc=pabeni@redhat$(echo .)com \
--cc=ryno.swart@corigine$(echo .)com \
--cc=yinjun.zhang@corigine$(echo .)com \
--cc=ziyang.chen@corigine$(echo .)com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox