aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorLaurent Pinchart <[email protected]>2014-11-01 10:32:28 -0300
committerMauro Carvalho Chehab <[email protected]>2014-12-04 12:41:51 -0200
commit69c0e9c547817fef14871bc5c4645fad683f242e (patch)
tree1111885af6e5602910bdc1e144cd424948869cb8 /tools/perf/scripts/python/event_analyzing_sample.py
parentf6cee18858b3c0adaa30cbe45a1766c8ef053c5d (diff)
[media] v4l: vb2: Fix race condition in _vb2_fop_release
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 <[email protected]> Acked-by: Hans Verkuil <[email protected]> Acked-by: Sylwester Nawrocki <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions