[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZoQBdcpaI4q9Fj3r@gmail.com>
Date: Tue, 2 Jul 2024 06:32:37 -0700
From: Breno Leitao <leitao@...ian.org>
To: Simon Horman <horms@...nel.org>
Cc: linuxppc-dev@...ts.ozlabs.org, linux-arm-kernel@...ts.infradead.org,
netdev@...r.kernel.org,
Horia Geantă <horia.geanta@....com>,
Pankaj Gupta <pankaj.gupta@....com>,
Gaurav Jain <gaurav.jain@....com>,
Herbert Xu <herbert@...dor.apana.org.au>,
"David S. Miller" <davem@...emloft.net>
Subject: Re: [PATCH 3/4] crypto: caam: Unembed net_dev structure from qi
Hello Simon,
On Fri, Jun 28, 2024 at 05:32:26PM +0100, Simon Horman wrote:
> On Mon, Jun 24, 2024 at 09:21:21AM -0700, Breno Leitao wrote:
> > @@ -530,6 +530,7 @@ static void caam_qi_shutdown(void *data)
> >
> > if (kill_fq(qidev, per_cpu(pcpu_qipriv.rsp_fq, i)))
> > dev_err(qidev, "Rsp FQ kill failed, cpu: %d\n", i);
> > + free_netdev(pcpu_qipriv.net_dev);
> Hi Breno,
>
> I don't think you can access pcpu_qipriv.net_dev like this,
> as pcpu_qipriv is a per-cpu variable. Perhaps this?
>
> free_netdev(per_cpu(pcpu_qipriv.net_dev, i));
You are absolutely correct. Let me fix it.
> Flagged by Sparse.
Thanks. I've just added sparse to my development workflow, and I can see
it also:
drivers/crypto/caam/qi.c:533:29: warning: dereference of noderef expression
Thanks for the review. I will send an updated version.
--breno
Powered by blists - more mailing lists