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

Tony Lindgren tony at atomide.com
Thu Nov 30 03:57:36 PST 2023


* Kunwu Chan <chentao at kylinos.cn> [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



More information about the linux-arm-kernel mailing list