drm/i915: Warn on if set frontbuffer return value is not NULL on release
authorJouni Högander <jouni.hogander@intel.com>
Thu, 28 Sep 2023 08:29:24 +0000 (11:29 +0300)
committerJouni Högander <jouni.hogander@intel.com>
Fri, 29 Sep 2023 07:32:34 +0000 (10:32 +0300)
commita9d0eb95dbdbd3fdb8fff2ad94b4356fb9dd5e77
tree1df3a1e2737b0fde4521c7f869045a1137325a5c
parentf67ff36f2117ff789876abb2e48f42e086475095
drm/i915: Warn on if set frontbuffer return value is not NULL on release

i915_gem_object_set_frontbuffer returns set frontbuffer pointer.  When we
are releasing frontbuffer we are clearing the pointer from the object. Warn
on if return value is not null.

v3: Check i915_gem_object_set_frontbuffer return value separately
v2: Instead of ignoring do drm_WARN_ON

Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230928082924.164720-1-jouni.hogander@intel.com
drivers/gpu/drm/i915/display/intel_frontbuffer.c