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

2013-06-26 Thread YoungJun Cho
On Jun 26, 2013 4:13 PM, "Maarten Lankhorst" < maarten.lankhorst at canonical.com> wrote: > > Op 26-06-13 04:14, Seung-Woo Kim schreef: > > From: YoungJun Cho > > > > 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 m

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

2013-06-26 Thread Seung-Woo Kim
From: YoungJun Cho 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 WARN_ON assertion whether drm_gem_mmap_obj() is called with mutex lock or not. Signed-off-by: YoungJun Cho Signed-off-by: Seu

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

2013-06-26 Thread Maarten Lankhorst
Op 26-06-13 04:14, Seung-Woo Kim schreef: > From: YoungJun Cho > > 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 WARN_ON assertion whether drm_gem_mmap_obj() is > called with mutex lock or

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

2013-06-26 Thread YoungJun Cho
On Jun 26, 2013 4:13 PM, "Maarten Lankhorst" < maarten.lankho...@canonical.com> wrote: > > Op 26-06-13 04:14, Seung-Woo Kim schreef: > > From: YoungJun Cho > > > > 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 miss

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

2013-06-26 Thread Maarten Lankhorst
Op 26-06-13 04:14, Seung-Woo Kim schreef: > From: YoungJun Cho > > 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 WARN_ON assertion whether drm_gem_mmap_obj() is > called with mutex lock or

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

2013-06-25 Thread Seung-Woo Kim
From: YoungJun Cho 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 WARN_ON assertion whether drm_gem_mmap_obj() is called with mutex lock or not. Signed-off-by: YoungJun Cho Signed-off-by: Seu