[PATCH] drm: Hold the mutex when dropping the last GEM reference (v2)

Chris Wilson chris at chris-wilson.co.uk
Thu Sep 30 08:15:06 PDT 2010


On Thu, 30 Sep 2010 09:10:26 +0100, Chris Wilson <chris at chris-wilson.co.uk> wrote:
> In order to be fully threadsafe we need to check that the drm_gem_object
> refcount is still 0 after acquiring the mutex in order to call the free
> function. Otherwise, we may encounter scenarios like:
[snip]
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=30454
> Reported-by: Magnus Kessler <Magnus.Kessler at gmx.net>
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> Cc: Dave Airlie <airlied at redhat.com>
> Cc: stable at kernel.org

Reported-and-tested-by: Magnus Kessler <Magnus.Kessler at gmx.net>

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the dri-devel mailing list