[PATCH v2] drm/gem: add mutex lock when using drm_gem_mmap_obj

Maarten Lankhorst maarten.lankhorst at canonical.com
Thu Jun 27 07:20:33 PDT 2013


Op 27-06-13 01:39, Seung-Woo Kim schreef:
> From: YoungJun Cho <yj44.cho at samsung.com>
>
> 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 at samsung.com>
> Signed-off-by: Seung-Woo Kim <sw0312.kim at samsung.com>
> Signed-off-by: Kyungmin Park <kyungmin.park at samsung.com>
> CC: Laurent Pinchart <laurent.pinchart+renesas at ideasonboard.com>
> CC: Rob Clark <robdclark at gmail.com>
>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst at canonical.com>


More information about the dri-devel mailing list