summaryrefslogtreecommitdiff
path: root/sound/pci
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2012-03-27 05:51:00 -0300
committerVarun Wadekar <vwadekar@nvidia.com>2012-04-18 19:26:57 +0530
commit00dcd785ac81bd4a6ca856ddd80bbb48b7f7177d (patch)
treeebf37ffe83da52544e056a1a70f78acf0953a004 /sound/pci
parente7b1b395d7e84bf023c546c02fac1727f5f6749d (diff)
[media] uvcvideo: Fix race-related crash in uvc_video_clock_update()
The driver frees the clock samples buffer before stopping the video buffers queue. If a DQBUF call arrives in-between, uvc_video_clock_update() will be called with a NULL clock samples buffer, leading to a crash. This occurs very frequently when using the webcam with the flash browser plugin. Move clock initialization/cleanup to uvc_video_enable() in order to free the clock samples buffer after the queue is stopped. Make sure the clock is reset at resume time to avoid miscalculating timestamps. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Cc: stable@vger.kernel.org Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'sound/pci')
0 files changed, 0 insertions, 0 deletions