[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <57f42b7d08b816bc1a2e25d7f5932c3b2166c074.camel@codeconstruct.com.au>
Date: Tue, 18 Mar 2025 12:03:51 +1030
From: Andrew Jeffery <andrew@...econstruct.com.au>
To: Chenyuan Yang <chenyuan0y@...il.com>, gregkh@...uxfoundation.org,
joel@....id.au
Cc: linux-usb@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-aspeed@...ts.ozlabs.org, linux-kernel@...r.kernel.org,
netdev@...r.kernel.org
Subject: Re: [PATCH] usb: gadget: aspeed: Add NULL pointer check in
ast_vhub_init_dev()
On Mon, 2025-03-10 at 20:27 -0500, Chenyuan Yang wrote:
> The variable d->name, returned by devm_kasprintf(), could be NULL.
> A pointer check is added to prevent potential NULL pointer
> dereference.
> This is similar to the fix in commit 3027e7b15b02
> ("ice: Fix some null pointer dereference issues in ice_ptp.c").
>
> This issue is found by our static analysis tool
Which tool is this? Can it be run by others (me)?
>
> Signed-off-by: Chenyuan Yang <chenyuan0y@...il.com>
Reviewed-by: Andrew Jeffery <andrew@...econstruct.com.au>
Powered by blists - more mailing lists