gspca-core: Fix buffers staying in queued state after a stream_off
authorHans de Goede <hdegoede@redhat.com>
Tue, 22 May 2012 14:24:05 +0000 (11:24 -0300)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 4 Jul 2012 04:44:14 +0000 (05:44 +0100)
commit2b1e0f0a1618b62738eb86eb67eecbdebd491a0c
tree6c6cbbc59e8b53db6fbe9139ba9ffd87147ef7e0
parentc4a08668a15a03370b3ba7cae49d1017f2c8434d
gspca-core: Fix buffers staying in queued state after a stream_off

commit af05ef01e9cde84620c6855a8d8ab9c8a1db9009 upstream.

This fixes a regression introduced by commit f7059ea and should be
backported to all supported stable kernels which have this commit.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Tested-by: Antonio Ospite <ospite@studenti.unina.it>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
[bwh: Backported to 3.2: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/media/video/gspca/gspca.c