[PATCH] usb: gadget: Add check devm_kasprintf() returned value

Andrew Jeffery andrew at codeconstruct.com.au
Mon Sep 30 09:29:31 AEST 2024


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 at inspur.com>

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


More information about the Linux-aspeed mailing list