lkml.org 
[lkml]   [2023]   [Jan]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH drm-next 02/14] drm/exec: fix memory leak in drm_exec_prepare_obj()
    Date
    Don't call drm_gem_object_get() unconditionally.

    Signed-off-by: Danilo Krummrich <dakr@redhat.com>
    ---
    drivers/gpu/drm/drm_exec.c | 1 -
    1 file changed, 1 deletion(-)

    diff --git a/drivers/gpu/drm/drm_exec.c b/drivers/gpu/drm/drm_exec.c
    index ed2106c22786..5713a589a6a3 100644
    --- a/drivers/gpu/drm/drm_exec.c
    +++ b/drivers/gpu/drm/drm_exec.c
    @@ -282,7 +282,6 @@ int drm_exec_prepare_obj(struct drm_exec *exec, struct drm_gem_object *obj,
    goto error_unlock;
    }

    - drm_gem_object_get(obj);
    return 0;

    error_unlock:
    --
    2.39.0
    \
     
     \ /
      Last update: 2023-03-26 23:45    [W:7.850 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site