drm/gem: Warn on trying to use a non-existing framebuffer plane
authorThomas Zimmermann <tzimmermann@suse.de>
Tue, 17 May 2022 11:33:27 +0000 (13:33 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Thu, 19 May 2022 17:25:23 +0000 (19:25 +0200)
commit4f093a527b0b8f9d3059a4e8376e582fd14cf09e
tree5f2657720ba113dc5011ebf4bca1ca878e8cc99d
parenta8d6e127254c48d895c4f6e973ec998fd4a0eff3
drm/gem: Warn on trying to use a non-existing framebuffer plane

Warn if callers of drm_gem_fb_get_obj() try to use a GEM buffer for
a non-existing or unset plane.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Tested-by: Noralf Trønnes <noralf@tronnes.org>
Acked-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220517113327.26919-6-tzimmermann@suse.de
drivers/gpu/drm/drm_gem_framebuffer_helper.c