]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/media/video/ivtv/ivtv-yuv.c
V4L/DVB (9166): ivtv - Fix potential race condition in yuv handler
[net-next-2.6.git] / drivers / media / video / ivtv / ivtv-yuv.c
index 3092ff1d00a066a24a4d04b3de06f1999159a299..ee91107376c75440ca56f6620924724a2267c5ab 100644 (file)
@@ -1147,6 +1147,7 @@ void ivtv_yuv_close(struct ivtv *itv)
        IVTV_DEBUG_YUV("ivtv_yuv_close\n");
        ivtv_waitq(&itv->vsync_waitq);
 
+       yi->running = 0;
        atomic_set(&yi->next_dma_frame, -1);
        atomic_set(&yi->next_fill_frame, 0);