Re: [PATCH] ARM: OMAP2+: Fix null pointer dereference and memory leak in omap_soc_device_init

From: Tony Lindgren
Date: Thu Nov 30 2023 - 06:58:18 EST


* Kunwu Chan <chentao@xxxxxxxxxx> [231123 16:53]:
> kasprintf() returns a pointer to dynamically allocated memory which can
> be NULL upon failure. When 'soc_dev_attr->family' is NULL,it'll trigger
> the null pointer dereference issue, such as in 'soc_info_show'.

Applying into fixes thanks.

Tony