Re: (subset) [PATCH] drm/vc4: fix error code in vc4_create_object()

2021-11-19 Thread Maxime Ripard
On Thu, 18 Nov 2021 14:14:16 +0300, Dan Carpenter wrote: > The ->gem_create_object() functions are supposed to return NULL if there > is an error. None of the callers expect error pointers so returing one > will lead to an Oops. See drm_gem_vram_create(), for example. > > Applied to drm/drm-mi

[PATCH] drm/vc4: fix error code in vc4_create_object()

2021-11-18 Thread Dan Carpenter
The ->gem_create_object() functions are supposed to return NULL if there is an error. None of the callers expect error pointers so returing one will lead to an Oops. See drm_gem_vram_create(), for example. Fixes: c826a6e10644 ("drm/vc4: Add a BO cache.") Signed-off-by: Dan Carpenter --- driver