[media] au8028: Fix cleanup on kzalloc fail
authorTim Mester <ttmesterr@gmail.com>
Tue, 7 Jan 2014 04:29:24 +0000 (01:29 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Mon, 13 Jan 2014 13:05:57 +0000 (11:05 -0200)
commit4609981f84a23e8d481502f4728e0fed910abe03
treee6550efdec073e3a5b7c4d4aeb0ccfed5333a37e
parentbbd8f3fef9d289fcfddaefccc2e5a2355da5d2f4
[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>
drivers/media/usb/au0828/au0828-dvb.c
drivers/media/usb/au0828/au0828.h