Re: [PATCH] usb: gadget: Add check devm_kasprintf() returned value
From: Andrew Jeffery
Date: Sun Sep 29 2024 - 19:29:55 EST
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 <hanchunchao@xxxxxxxxxx>
You should consider Greg's bot's reply to your other patch here also:
https://lore.kernel.org/all/2024092910-mobility-waking-758f@gregkh/
Andrew