[media] stk1160: Stop device and unqueue buffers when start_streaming() fails
authorEzequiel Garcia <elezegarcia@gmail.com>
Mon, 20 Aug 2012 00:23:46 +0000 (21:23 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 25 Sep 2012 13:56:48 +0000 (10:56 -0300)
commit8ac456495a33d9466076fea94594181ceefb76d9
treed452d0c40004d1eaee6b34a0838fc8932eda2997
parentc6b69c6c58288587c33efb43ca6e19f1c80b2757
[media] stk1160: Stop device and unqueue buffers when start_streaming() fails

If start_streaming() fails (e.g. out of memory) the driver needs to
rewind the start procedure. This implies possibly stopping the device
and clearing the buffer queue.

Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/stk1160/stk1160-v4l.c