Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b608f432 authored by Brandon Philips's avatar Brandon Philips Committed by Mauro Carvalho Chehab
Browse files

V4L/DVB (7487): videobuf: Wakeup queues after changing the state to ERROR



The waitqueues must be woken up every time state changes.

Signed-off-by: default avatarBrandon Philips <bphilips@suse.de>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 8eb8ff38
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -204,6 +204,7 @@ void videobuf_queue_cancel(struct videobuf_queue *q)
		if (q->bufs[i]->state == VIDEOBUF_QUEUED) {
			list_del(&q->bufs[i]->queue);
			q->bufs[i]->state = VIDEOBUF_ERROR;
			wake_up_all(&q->bufs[i]->done);
		}
	}
	if (q->irqlock)