From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Jeffery Date: Mon, 30 Sep 2024 08:59:31 +0930 Subject: [PATCH] usb: gadget: Add check devm_kasprintf() returned value In-Reply-To: <20240929031423.40630-1-hanchunchao@inspur.com> References: <20240929031423.40630-1-hanchunchao@inspur.com> Message-ID: List-Id: To: linux-aspeed@lists.ozlabs.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit On Sun, 2024-09-29 at 11:14 +0800, Charles Han wrote: > devm_kasprintf() can return a NULL pointer on failure but this > returned value in ast_vhub_init_dev() is not checked. > > Fixes: 7ecca2a4080c ("usb/gadget: Add driver for Aspeed SoC virtual hub") > Signed-off-by: Charles Han You should consider Greg's bot's reply to your other patch here also: https://lore.kernel.org/all/2024092910-mobility-waking-758f at gregkh/ Andrew