public inbox for netdev@vger.kernel.org 
 help / color / mirror / Atom feed
From: Simon Horman <horms@kernel•org>
To: Ratheesh Kannoth <rkannoth@marvell•com>
Cc: netdev@vger•kernel.org, linux-kernel@vger•kernel.org,
	sgoutham@marvell•com, davem@davemloft•net, edumazet@google•com,
	kuba@kernel•org, pabeni@redhat•com, sbhatta@marvell•com,
	gakula@marvell•com, hkelam@marvell•com, bcreeley@amd•com,
	sumang@marvell•com
Subject: Re: [PATCH net v1] octeontx2-af: Initialize bitmap arrays.
Date: Thu, 25 Jan 2024 11:41:22 +0000	[thread overview]
Message-ID: <20240125114122.GA362264@kernel.org> (raw)
In-Reply-To: <20240125063414.3930526-1-rkannoth@marvell.com>

On Thu, Jan 25, 2024 at 12:04:14PM +0530, Ratheesh Kannoth wrote:
> kmalloc_array() without __GFP_ZERO flag does not initializes
> memory to zero.  This causes issues with bitmap. Use __GFP_ZERO
> to fix the issue.
> 
> Fixes: dd7842878633 ("octeontx2-af: Add new devlink param to configure maximum usable NIX block LFs")
> Signed-off-by: Ratheesh Kannoth <rkannoth@marvell•com>
> 
> ChangeLogs:
> v0 -> v1: Removed devm_kcalloc()._

Hi Ratheesh,

sorry for missing this in my first review,
but perhaps it is better to use bitmap_zalloc() and bitmap_free()
as suggested by Brett Creeley.

Link: https://lore.kernel.org/all/cf035125-d7fb-4423-8f64-a5be7505243d@amd.com/

      reply	other threads:[~2024-01-25 11:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-25  6:34 [PATCH net v1] octeontx2-af: Initialize bitmap arrays Ratheesh Kannoth
2024-01-25 11:41 ` 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=20240125114122.GA362264@kernel.org \
    --to=horms@kernel$(echo .)org \
    --cc=bcreeley@amd$(echo .)com \
    --cc=davem@davemloft$(echo .)net \
    --cc=edumazet@google$(echo .)com \
    --cc=gakula@marvell$(echo .)com \
    --cc=hkelam@marvell$(echo .)com \
    --cc=kuba@kernel$(echo .)org \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=netdev@vger$(echo .)kernel.org \
    --cc=pabeni@redhat$(echo .)com \
    --cc=rkannoth@marvell$(echo .)com \
    --cc=sbhatta@marvell$(echo .)com \
    --cc=sgoutham@marvell$(echo .)com \
    --cc=sumang@marvell$(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