[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20221129200242.298120-2-robdclark@gmail.com>
Date: Tue, 29 Nov 2022 12:02:41 -0800
From: Rob Clark <robdclark@...il.com>
To: dri-devel@...ts.freedesktop.org
Cc: Daniel Vetter <daniel@...ll.ch>,
Rob Clark <robdclark@...omium.org>, stable@...r.kernel.org,
Maarten Lankhorst <maarten.lankhorst@...ux.intel.com>,
Maxime Ripard <mripard@...nel.org>,
Thomas Zimmermann <tzimmermann@...e.de>,
David Airlie <airlied@...il.com>,
Eric Anholt <eric@...olt.net>,
Noralf Trønnes <noralf@...nnes.org>,
Rob Herring <robh@...nel.org>,
linux-kernel@...r.kernel.org (open list)
Subject: [PATCH 1/2] drm/shmem-helper: Remove errant put in error path
From: Rob Clark <robdclark@...omium.org>
drm_gem_shmem_mmap() doesn't own this reference!
Fixes: 2194a63a818d ("drm: Add library for shmem backed GEM objects")
Cc: stable@...r.kernel.org
Signed-off-by: Rob Clark <robdclark@...omium.org>
---
drivers/gpu/drm/drm_gem_shmem_helper.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/gpu/drm/drm_gem_shmem_helper.c b/drivers/gpu/drm/drm_gem_shmem_helper.c
index 35138f8a375c..110a9eac2af8 100644
--- a/drivers/gpu/drm/drm_gem_shmem_helper.c
+++ b/drivers/gpu/drm/drm_gem_shmem_helper.c
@@ -623,7 +623,6 @@ int drm_gem_shmem_mmap(struct drm_gem_shmem_object *shmem, struct vm_area_struct
ret = drm_gem_shmem_get_pages(shmem);
if (ret) {
- drm_gem_vm_close(vma);
return ret;
}
--
2.38.1
Powered by blists - more mailing lists