]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
[media] media: vb2: reset queued_count value during queue reinitialization
authorMarek Szyprowski <m.szyprowski@samsung.com>
Fri, 10 Jun 2011 11:58:42 +0000 (08:58 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 1 Jul 2011 01:32:58 +0000 (22:32 -0300)
commitafdea8bac5e80362459940e18e705d792e677a57
treed51d08685cb146d0958daa5c951f7940759b093c
parentbf7b73efb7f52abf56b512546c3bbc35001dd696
[media] media: vb2: reset queued_count value during queue reinitialization

queued_count variable was left untouched during the queue reinitialization
in __vb2_queue_cancel, what might lead to mismatch between the real number
of queued buffers and queued_count variable.

Reported-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
CC: Pawel Osciak <pawel@osciak.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/videobuf2-core.c