mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-17 17:24:17 +08:00
V4L/DVB (6803): buf-core.c locking fixes
After commit 19fb145799
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>
This commit is contained in:
parent
da8cadb31b
commit
3f84307a10
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user