]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
V4L/DVB (6803): buf-core.c locking fixes
authorAdrian Bunk <bunk@stusta.de>
Wed, 12 Dec 2007 19:44:54 +0000 (16:44 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Thu, 13 Dec 2007 02:15:25 +0000 (00:15 -0200)
After commit 19fb1457990b6b7e15586ec7331541a184233acc the callers in
videobuf-core.c that already hold the lock must call
__videobuf_read_start() instead of videobuf_read_start().

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/videobuf-core.c

index 81f77d2b4bd39c48edeff93d548b66ff989f518f..c8a5cb57963b07bc75c6be6c75b7fdda4025d8a5 100644 (file)
@@ -909,7 +909,7 @@ ssize_t videobuf_read_stream(struct videobuf_queue *q,
        if (q->streaming)
                goto done;
        if (!q->reading) {
-               retval = videobuf_read_start(q);
+               retval = __videobuf_read_start(q);
                if (retval < 0)
                        goto done;
        }
@@ -982,7 +982,7 @@ unsigned int videobuf_poll_stream(struct file *file,
                                         struct videobuf_buffer, stream);
        } else {
                if (!q->reading)
-                       videobuf_read_start(q);
+                       __videobuf_read_start(q);
                if (!q->reading) {
                        rc = POLLERR;
                } else if (NULL == q->read_buf) {