soc: mediatek: mtk-socinfo Add error handling in devm_kasprintf()

Add an error check to the devm_kasprintf() function in
mtk_socinfo_create_socinfo_node(), returning -ENOMEM if the function
failed.

Assisted-by: gkh_clanker_t1000
CC: Matthias Brugger <matthias.bgg@gmail.com>
CC: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Griffin Kroah-Hartman <griffin@kroah.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
This commit is contained in:
Griffin Kroah-Hartman 2026-07-09 15:24:16 +02:00 • committed by AngeloGioacchino Del Regno
commit e4a3c99bbf
No known key found for this signature in database
GPG key ID: 9A3604CFAD978478