]> git.baikalelectronics.ru Git - kernel.git/commit
drm/gem: add mutex lock when using drm_gem_mmap_obj
authorYoungJun Cho <yj44.cho@samsung.com>
Wed, 26 Jun 2013 23:39:58 +0000 (08:39 +0900)
committerDave Airlie <airlied@redhat.com>
Fri, 28 Jun 2013 02:30:15 +0000 (12:30 +1000)
commitdc8a1fff41034a7d5d3e22d5dc6f8e8d22a86346
treee97b6d50520fa74b0281000425fe54ed37c52665
parent6dcf9043ef4f3fafae8204828582fbed3f47f27e
drm/gem: add mutex lock when using drm_gem_mmap_obj

The drm_gem_mmap_obj() has to be protected with dev->struct_mutex,
but some caller functions do not. So it adds mutex lock to missing
callers and adds assertion to check whether drm_gem_mmap_obj() is
called with mutex lock or not.

Signed-off-by: YoungJun Cho <yj44.cho@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Rob Clark <robdclark@gmail.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_gem.c
drivers/gpu/drm/drm_gem_cma_helper.c
drivers/gpu/drm/omapdrm/omap_gem_dmabuf.c