]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/stm: ltdc: check memory returned by devm_kzalloc()
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Wed, 31 May 2023 07:28:54 +0000 (10:28 +0300)
committerRaphael Gallais-Pou <raphael.gallais-pou@foss.st.com>
Mon, 15 Jul 2024 08:21:23 +0000 (10:21 +0200)
commitfd39730c58890cd7f0a594231e19bb357f28877c
tree1f0c5af5f574877fd82564ff7fb9bf504de500f0
parent3ac9384061b250ee40eda5facff10b85e2d5d3d8
drm/stm: ltdc: check memory returned by devm_kzalloc()

devm_kzalloc() can fail and return NULL pointer. Check its return status.
Identified with Coccinelle (kmerr.cocci script).

Fixes: 484e72d3146b ("drm/stm: ltdc: add support of ycbcr pixel formats")
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Acked-by: Raphael Gallais-Pou <raphael.gallais-pou@foss.st.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230531072854.142629-1-claudiu.beznea@microchip.com
Signed-off-by: Raphael Gallais-Pou <raphael.gallais-pou@foss.st.com>
drivers/gpu/drm/stm/ltdc.c