From: YoungJun Cho Date: Wed, 26 Jun 2013 23:39:58 +0000 (+0900) Subject: drm/gem: add mutex lock when using drm_gem_mmap_obj X-Git-Tag: v3.11-rc1~65^2~36 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4368dd846d067ed7d11281050e7676ae614d6053;p=pandora-kernel.git 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 Signed-off-by: Seung-Woo Kim Signed-off-by: Kyungmin Park Reviewed-by: Maarten Lankhorst Reviewed-by: Laurent Pinchart Reviewed-by: Rob Clark Reviewed-by: Maarten Lankhorst Signed-off-by: Dave Airlie --- Reading git-diff-tree failed