]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/plane: Fix IS_ERR() vs NULL bug drm_plane_create_color_pipeline_property()
authorDan Carpenter <dan.carpenter@linaro.org>
Fri, 5 Dec 2025 11:09:25 +0000 (14:09 +0300)
committerSimon Ser <contact@emersion.fr>
Thu, 11 Dec 2025 16:39:15 +0000 (17:39 +0100)
commit470cb09a2936d3c1ff8aeff46e3c14dcc4314e9b
tree181a5517814a72ab4f1a2dc0ad31bcf323d800b7
parent1b3d18de5535f2553d237d64a20f7a1a3947df68
drm/plane: Fix IS_ERR() vs NULL bug drm_plane_create_color_pipeline_property()

The drm_property_create_enum() function returns NULL on error, it never
returns error pointers.  Fix the error checking to match.

Fixes: 2afc3184f3b3 ("drm/plane: Add COLOR PIPELINE property")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Simon Ser <contact@emersion.fr>
Link: https://patch.msgid.link/aTK9ZR0sMgqSACow@stanley.mountain
drivers/gpu/drm/drm_plane.c