Message ID | 20230119231734.2884543-1-robdclark@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | drm/rockchip: Drop unbalanced obj unref | expand |
On Thu, 19 Jan 2023 15:17:34 -0800, Rob Clark wrote: > From: Rob Clark <robdclark@chromium.org> > > In the error path, rockchip_drm_gem_object_mmap() is dropping an obj > reference that it doesn't own. > > Applied, thanks! [1/1] drm/rockchip: Drop unbalanced obj unref commit: 8ee3b0e85f6ccd9e6c527bc50eaba774c3bb18d0 Best regards,
diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_gem.c b/drivers/gpu/drm/rockchip/rockchip_drm_gem.c index 6edb7c52cb3d..19b46c00dcbf 100644 --- a/drivers/gpu/drm/rockchip/rockchip_drm_gem.c +++ b/drivers/gpu/drm/rockchip/rockchip_drm_gem.c @@ -262,9 +262,6 @@ static int rockchip_drm_gem_object_mmap(struct drm_gem_object *obj, else ret = rockchip_drm_gem_object_mmap_dma(obj, vma); - if (ret) - drm_gem_vm_close(vma); - return ret; }