[PATCH] usb: gadget: aspeed: Check return value of kasprintf in ast_vhub_alloc_epn

Andy Shevchenko andriy.shevchenko at linux.intel.com
Wed Nov 22 02:48:12 PST 2023


On Wed, Nov 22, 2023 at 09:42:12AM +0800, Kunwu Chan wrote:
> kasprintf() returns a pointer to dynamically allocated memory
> which can be NULL upon failure. Ensure the allocation was successful
> by checking the pointer validity.

OK.
Reviewed-by: Andy Shevchenko <andriy.shevchenko at linux.intel.com>

-- 
With Best Regards,
Andy Shevchenko





More information about the linux-arm-kernel mailing list