Files
android_kernel_xiaomi_sm8450/drivers/gpu/drm/vc4
Dan Carpenter b33c5c8281 drm/vc4: fix error code in vc4_create_object()
[ Upstream commit 96c5f82ef0a145d3e56e5b26f2bf6dcd2ffeae1c ]

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: c826a6e106 ("drm/vc4: Add a BO cache.")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20211118111416.GC1147@kili
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-12-01 09:19:04 +01:00
..
2019-11-25 10:04:41 +01:00
2021-07-19 09:44:57 +02:00
2020-04-02 14:16:45 +02:00
2020-11-03 10:11:05 +01:00
2020-04-02 14:16:45 +02:00
2020-11-02 12:14:50 +01:00
2020-11-02 12:14:50 +01:00
2020-04-02 14:16:45 +02:00