[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <b99360be-feea-c33f-40ab-e7301307a794@gmail.com>
Date: Sun, 14 Nov 2021 01:41:59 +0300
From: Pavel Skripkin <paskripkin@...il.com>
To: aelior@...vell.com, skalluru@...vell.com, davem@...emloft.net,
kuba@...nel.org
Cc: netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] net: bnx2x: fix variable dereferenced before check
On 11/14/21 01:36, Pavel Skripkin wrote:
> Smatch says:
> bnx2x_init_ops.h:640 bnx2x_ilt_client_mem_op()
> warn: variable dereferenced before check 'ilt' (see line 638)
>
> Move ilt_cli variable initialization _after_ ilt validation, because
> it's unsafe to deref the pointer before validation check.
>
> Fixes: 523224a3b3cd ("bnx2x, cnic, bnx2i: use new FW/HSI")
> Signed-off-by: Pavel Skripkin <paskripkin@...il.com>
> ---
> drivers/net/ethernet/broadcom/bnx2x/bnx2x_init_ops.h | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
Btw, looks like GR-everest-linux-l2@...vell.com doesn't exist anymore.
It's listed in 2 MAINTAINERS entries. Should it be removed from
MAINTAINERS file?
Quoting private email from postmaster@...vel.com:
> Delivery has failed to these recipients or groups:
>
> gr-everest-linux-l2@...vell.com<mailto:gr-everest-linux-l2@...vell.com>
> The email address you entered couldn't be found. Please check the recipient's email address and try to resend the message. If the problem continues, please contact your helpdesk.
With regards,
Pavel Skripkin
Powered by blists - more mailing lists