[PATCH] Subject: [PATCH] usb: gadget: aspeed: Add NULL check in the ast_vhub_init_dev
Greg KH
gregkh at linuxfoundation.org
Sat Apr 5 04:07:14 PDT 2025
On Sat, Mar 29, 2025 at 08:29:11AM +0800, Henry Martin wrote:
> When devm_kasprintf() fails, it returns a NULL pointer. However, this return value is not properly checked in the function ast_vhub_init_dev.
>
> A NULL check should be added after the devm_kasprintf call to prevent potential NULL pointer dereference error.
Please properly wrap your changelog text.
> Fixes: 7ecca2a4080cb ("usb/gadget: Add driver for Aspeed SoC virtual hub")
No cc: stable?
Also, your Subject line has "Subject:" in it twice, something went wrong
with the patch when you sent it out :(
thanks,
greg k-h
More information about the linux-arm-kernel
mailing list