[PATCH] firmware: imx: sm-misc: Add NULL check for kmalloc in syslog_show
Frank.Li at oss.nxp.com
Frank.Li at oss.nxp.com
Mon Jun 29 13:41:42 PDT 2026
From: Frank Li <Frank.Li at nxp.com>
On Wed, 10 Jun 2026 08:38:14 +0800, Li Jun wrote:
> Add a proper NULL check for the kmalloc() return value in syslog_show().
> If memory allocation fails, syslog would be NULL and passing it to
> misc_syslog() could lead to a NULL pointer dereference.
Applied, thanks!
[1/1] firmware: imx: sm-misc: Add NULL check for kmalloc in syslog_show
commit: 4cf26bc2e7e099c86127d63ed7272753da45737e
Best regards,
--
Frank Li <Frank.Li at nxp.com>
More information about the linux-arm-kernel
mailing list