lkml.org 
[lkml]   [2013]   [Nov]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 3.8 53/91] drm/vmwgfx: Don't put resources with invalid id's on lru list
    Date
    3.8.13.13 -stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Thomas Hellstrom <thellstrom@vmware.com>

    commit 26682480c202e7360cbcdc3bc9e962bf749c6b8d upstream.

    The evict code may try to swap them out causing a BUG in the destroy
    function.

    Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
    Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
    Signed-off-by: Dave Airlie <airlied@redhat.com>
    Signed-off-by: Kamal Mostafa <kamal@canonical.com>
    ---
    drivers/gpu/drm/vmwgfx/vmwgfx_resource.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c b/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c
    index e01a17b..6453029 100644
    --- a/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c
    +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c
    @@ -971,7 +971,7 @@ void vmw_resource_unreserve(struct vmw_resource *res,
    if (new_backup)
    res->backup_offset = new_backup_offset;

    - if (!res->func->may_evict)
    + if (!res->func->may_evict || res->id == -1)
    return;

    write_lock(&dev_priv->resource_lock);
    --
    1.8.1.2


    \
     
     \ /
      Last update: 2013-11-08 04:01    [W:4.183 / U:0.156 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site