[PATCH] drm/stm: ltdc: check memory returned by devm_kzalloc()
Raphael Gallais-Pou
raphael.gallais-pou at foss.st.com
Mon Jul 15 08:33:53 UTC 2024
On 5/31/23 09:28, Claudiu Beznea wrote:
> 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 at microchip.com>
> ---
>
> Hi,
>
> This has been addressed using kmerr.cocci script proposed for update
> at [1].
>
> Thank you,
> Claudiu Beznea
>
> [1] https://lore.kernel.org/all/20230530074044.1603426-1-claudiu.beznea@microchip.com/
>
Hi Claudiu,
After some delay: applied on drm-misc-next.
Thank,
Raphaël
More information about the dri-devel
mailing list