drm/gma500: Use correct unref in the gem bo create function
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 23 Nov 2015 09:32:49 +0000 (10:32 +0100)
committerSasha Levin <sasha.levin@oracle.com>
Tue, 12 Apr 2016 02:44:21 +0000 (22:44 -0400)
commit527435d6f08f8b42d23b4ec3616169dc9ab1c40b
tree0a7dfe27594fef0c9142c5582a9888cd3600e40c
parenta7635d6a0849007d2192bc02c038cc1b9d91b274
drm/gma500: Use correct unref in the gem bo create function

[ Upstream commit d3e376f52d095103ca51dbda4d6ff8aaf488f98f ]

This is called without dev->struct_mutex held, we need to use the
_unlocked variant.

Never caught in the wild since you'd need an evil userspace which
races a gem_close ioctl call with the in-progress open.

Cc: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Acked-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1448271183-20523-17-git-send-email-daniel.vetter@ffwll.ch
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/gpu/drm/gma500/gem.c