[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <a0807e04-b2c9-4261-9b3f-7660fe258f56@stanley.mountain>
Date: Wed, 20 Nov 2024 20:04:06 +0300
From: Dan Carpenter <dan.carpenter@...aro.org>
To: Paolo Perego <pperego@...e.de>
Cc: linux-staging@...ts.linux.dev, linux-kernel@...r.kernel.org,
Dave Penkler <dpenkler@...il.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Kees Bakker <kees@...erbout.nl>, Arnd Bergmann <arnd@...db.de>
Subject: Re: [PATCH] staging:gpib: Fix a dereference before null check issue
On Wed, Nov 20, 2024 at 03:46:53PM +0100, Paolo Perego wrote:
> This commit fixes a dereference before null check issue discovered by
> Coverity (CID 1601566).
>
> The check ad line 1450 suggests that a_priv can be NULL, however it has
> been derefenced before, in the interface_to_usbdev() call.
>
> Signed-off-by: Paolo Perego <pperego@...e.de>
> ---
You need a Fixes tag. But I'm pretty sure the correct fix is to remove the NULL
check.
regards,
dan carpenter
Powered by blists - more mailing lists