On 01/12/14 21:13, Laurent Pinchart wrote: > The function releases the queue if the file being released is the queue > owner. The check reads the queue->owner field without taking the queue > lock, creating a race condition with functions that set the queue owner, > such as vb2_ioctl_reqbufs() for instance. > > Fix this by moving the queue->owner check within the mutex protected > section. > > Signed-off-by: Laurent Pinchart <laurent.pinchart@xxxxxxxxxxxxxxxx> > Acked-by: Hans Verkuil <hans.verkuil@xxxxxxxxx> Acked-by: Sylwester Nawrocki <s.nawrocki@xxxxxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html