[PATCH 2/3] drm/omap: fix possible NULL ref issue in tiler_reserve_2d

Emil Velikov emil.l.velikov at gmail.com
Thu Mar 29 11:02:39 UTC 2018


On 29 March 2018 at 11:40, Tomi Valkeinen <tomi.valkeinen at ti.com> wrote:
> tiler_reserve_2d allocates memory but does not check if it got the
> memory. Add the check and return ENOMEM on failure.
>
> Signed-off-by: Tomi Valkeinen <tomi.valkeinen at ti.com>
It's funny when the function call (kzalloc here) is just outside the context ;-)

Reviewed-by: Emil Velikov <emil.velikov at collabora.com>

-Emil


More information about the dri-devel mailing list