Re: [PATCH v6 04/10] media: vb2: Take queue or device lock in vb2_fop_mmap()

2013-08-06 Thread Laurent Pinchart
Hi Hans, On Tuesday 06 August 2013 12:39:27 Hans Verkuil wrote: > On Mon 5 August 2013 19:53:23 Laurent Pinchart wrote: > > The vb2_fop_mmap() function is a plug-in implementation of the mmap() > > file operation that calls vb2_mmap() on the queue associated with the > > video device. Neither the

Re: [PATCH v6 04/10] media: vb2: Take queue or device lock in vb2_fop_mmap()

2013-08-06 Thread Hans Verkuil
On Mon 5 August 2013 19:53:23 Laurent Pinchart wrote: > The vb2_fop_mmap() function is a plug-in implementation of the mmap() > file operation that calls vb2_mmap() on the queue associated with the > video device. Neither the vb2_fop_mmap() function nor the v4l2_mmap() > mmap handler in the V4L2 co

[PATCH v6 04/10] media: vb2: Take queue or device lock in vb2_fop_mmap()

2013-08-05 Thread Laurent Pinchart
The vb2_fop_mmap() function is a plug-in implementation of the mmap() file operation that calls vb2_mmap() on the queue associated with the video device. Neither the vb2_fop_mmap() function nor the v4l2_mmap() mmap handler in the V4L2 core take any lock, leading to race conditions between mmap() an