[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250910192658.55383c60@kernel.org>
Date: Wed, 10 Sep 2025 19:26:58 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Kamal Heib <kheib@...hat.com>
Cc: netdev@...r.kernel.org, Veerasenareddy Burru <vburru@...vell.com>,
Sathesh Edara <sedara@...vell.com>, Shinas Rasheed <srasheed@...vell.com>,
"David S. Miller" <davem@...emloft.net>, Paolo Abeni <pabeni@...hat.com>,
Michal Swiatkowski <michal.swiatkowski@...ux.intel.com>
Subject: Re: [PATCH net v2] octeon_ep: Validate the VF ID
On Tue, 9 Sep 2025 09:10:20 -0400 Kamal Heib wrote:
> +static bool octep_is_vf_valid(struct octep_device *oct, int vf)
> +{
> + if (vf >= CFG_GET_ACTIVE_VFS(oct->conf)) {
> + dev_err(&oct->pdev->dev, "Invalid VF ID %d\n", vf);
> + return false;
perhaps a nit, but why did you choose dev_err() over netdev_err()?
The incoming handle is a netdev.
--
pw-bot: cr
Powered by blists - more mailing lists