path: root/drivers/media/usb/au0828/au0828.h
diff options
authorTim Mester <ttmesterr@gmail.com>2014-01-07 01:29:24 -0300
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-01-13 11:05:57 -0200
commit4609981f84a23e8d481502f4728e0fed910abe03 (patch)
treee6550efdec073e3a5b7c4d4aeb0ccfed5333a37e /drivers/media/usb/au0828/au0828.h
parentbbd8f3fef9d289fcfddaefccc2e5a2355da5d2f4 (diff)
[media] au8028: Fix cleanup on kzalloc fail
Free what was allocated if there is a failure allocating transfer buffers. Stop the feed on a start feed error. The stop feed is not always called if start feed fails. If the feed is not stopped on error, then the driver will be stuck so that it can never start feeding again. [m.chehab@samsung.com: CodingStyle cleanup] Signed-off-by: Tim Mester <tmester@ieee.org> Acked-by: Devin Heitmueller <dheitmueller@kernellabs.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/usb/au0828/au0828.h')
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/usb/au0828/au0828.h b/drivers/media/usb/au0828/au0828.h
index ef1f57f22be7..a00b400f8703 100644
--- a/drivers/media/usb/au0828/au0828.h
+++ b/drivers/media/usb/au0828/au0828.h
@@ -102,6 +102,8 @@ struct au0828_dvb {
struct dmx_frontend fe_mem;
struct dvb_net net;
int feeding;
+ int start_count;
+ int stop_count;
enum au0828_stream_state {

Privacy Policy