Re: [PATCH] drm/ingenic: fix error code in ingenic_drm_gem_create_object()

2021-12-09 Thread Thomas Zimmermann
FYI this issue was fixed by [1]. Please don't merge. [1] https://lore.kernel.org/dri-devel/20211130095255.26710-1-tzimmerm...@suse.de/ Am 18.11.21 um 12:15 schrieb Dan Carpenter: The ->gem_create_object() function pointers are supposed to return NULL on error. This function returns an error

[PATCH] drm/ingenic: fix error code in ingenic_drm_gem_create_object()

2021-11-18 Thread Dan Carpenter
The ->gem_create_object() function pointers are supposed to return NULL on error. This function returns an error pointer but none of the callers expect that so it will lead to an Oops. See drm_gem_vram_create() for example of it checks for NULL but an error pointer would lead to a crash. Fixes: