From: Jakub Kicinski <kuba@kernel•org>
To: Shradha Gupta <shradhagupta@linux•microsoft.com>
Cc: linux-hardening@vger•kernel.org, netdev@vger•kernel.org,
linux-hyperv@vger•kernel.org, linux-kernel@vger•kernel.org,
linux-rdma@vger•kernel.org,
Colin Ian King <colin.i.king@gmail•com>,
Ahmed Zaki <ahmed.zaki@intel•com>,
Pavan Chebbi <pavan.chebbi@broadcom•com>,
Souradeep Chakrabarti <schakrabarti@linux•microsoft.com>,
Konstantin Taranov <kotaranov@microsoft•com>,
Kees Cook <keescook@chromium•org>,
Paolo Abeni <pabeni@redhat•com>,
Eric Dumazet <edumazet@google•com>,
"David S. Miller" <davem@davemloft•net>,
Dexuan Cui <decui@microsoft•com>, Wei Liu <wei.liu@kernel•org>,
Haiyang Zhang <haiyangz@microsoft•com>,
"K. Y. Srinivasan" <kys@microsoft•com>,
Leon Romanovsky <leon@kernel•org>, Jason Gunthorpe <jgg@ziepe•ca>,
Ajay Sharma <sharmaajay@microsoft•com>,
Long Li <longli@microsoft•com>,
Shradha Gupta <shradhagupta@microsoft•com>
Subject: Re: [PATCH net-next v2] net: mana: Allow variable size indirection table
Date: Thu, 30 May 2024 08:41:19 -0700 [thread overview]
Message-ID: <20240530084119.684e2783@kernel.org> (raw)
In-Reply-To: <1716960955-3195-1-git-send-email-shradhagupta@linux.microsoft.com>
On Tue, 28 May 2024 22:35:55 -0700 Shradha Gupta wrote:
> + save_table = kcalloc(apc->indir_table_sz, sizeof(u32), GFP_KERNEL);
> + if (!save_table)
> + return -ENOMEM;
> +
> if (rxfh->indir) {
> - for (i = 0; i < MANA_INDIRECT_TABLE_SIZE; i++)
> + for (i = 0; i < apc->indir_table_sz; i++)
> if (rxfh->indir[i] >= apc->num_queues)
> return -EINVAL;
leaks save_table
prev parent reply other threads:[~2024-05-30 15:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-29 5:35 [PATCH net-next v2] net: mana: Allow variable size indirection table Shradha Gupta
2024-05-30 14:37 ` Leon Romanovsky
2024-05-30 15:42 ` Jakub Kicinski
2024-05-30 16:03 ` Leon Romanovsky
2024-05-30 15:41 ` Jakub Kicinski [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=20240530084119.684e2783@kernel.org \
--to=kuba@kernel$(echo .)org \
--cc=ahmed.zaki@intel$(echo .)com \
--cc=colin.i.king@gmail$(echo .)com \
--cc=davem@davemloft$(echo .)net \
--cc=decui@microsoft$(echo .)com \
--cc=edumazet@google$(echo .)com \
--cc=haiyangz@microsoft$(echo .)com \
--cc=jgg@ziepe$(echo .)ca \
--cc=keescook@chromium$(echo .)org \
--cc=kotaranov@microsoft$(echo .)com \
--cc=kys@microsoft$(echo .)com \
--cc=leon@kernel$(echo .)org \
--cc=linux-hardening@vger$(echo .)kernel.org \
--cc=linux-hyperv@vger$(echo .)kernel.org \
--cc=linux-kernel@vger$(echo .)kernel.org \
--cc=linux-rdma@vger$(echo .)kernel.org \
--cc=longli@microsoft$(echo .)com \
--cc=netdev@vger$(echo .)kernel.org \
--cc=pabeni@redhat$(echo .)com \
--cc=pavan.chebbi@broadcom$(echo .)com \
--cc=schakrabarti@linux$(echo .)microsoft.com \
--cc=sharmaajay@microsoft$(echo .)com \
--cc=shradhagupta@linux$(echo .)microsoft.com \
--cc=shradhagupta@microsoft$(echo .)com \
--cc=wei.liu@kernel$(echo .)org \
/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