aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/drm
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2025-04-18 08:38:26 +1000
committerDave Airlie <airlied@redhat.com>2025-04-18 08:38:29 +1000
commit9bca5bcdeb0d157084a3de6ab1b17424eb875d10 (patch)
tree11f5c8532acdead36fceb64c0d52713fda855055 /include/drm
parentMerge tag 'drm-intel-fixes-2025-04-17' of https://gitlab.freedesktop.org/drm/i915/kernel into drm-fixes (diff)
parentdrm/mgag200: Fix value in <VBLKSTR> register (diff)
downloadwireguard-linux-9bca5bcdeb0d157084a3de6ab1b17424eb875d10.tar.xz
wireguard-linux-9bca5bcdeb0d157084a3de6ab1b17424eb875d10.zip
Merge tag 'drm-misc-fixes-2025-04-17' of https://gitlab.freedesktop.org/drm/misc/kernel into drm-fixes
Short summary of fixes pull: dma-buf: - Correctly decrement refcounter on errors gem: - Fix test for imported buffers ivpu: - Fix debugging - Fixes to frequency - Support firmware API 3.28.3 - Flush jobs upon reset mgag200: - Set vblank start to correct values v3d: - Fix Indirect Dispatch Signed-off-by: Dave Airlie <airlied@redhat.com> From: Thomas Zimmermann <tzimmermann@suse.de> Link: https://lore.kernel.org/r/20250417084043.GA365738@linux.fritz.box
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/drm_gem.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/drm/drm_gem.h b/include/drm/drm_gem.h
index 2bf893eabb4b..bcd54020d6ba 100644
--- a/include/drm/drm_gem.h
+++ b/include/drm/drm_gem.h
@@ -585,8 +585,7 @@ static inline bool drm_gem_object_is_shared_for_memory_stats(struct drm_gem_obje
*/
static inline bool drm_gem_is_imported(const struct drm_gem_object *obj)
{
- /* The dma-buf's priv field points to the original GEM object. */
- return obj->dma_buf && (obj->dma_buf->priv != obj);
+ return !!obj->import_attach;
}
#ifdef CONFIG_LOCKDEP