[media] v4l: omap4iss: Stop started entities when pipeline start fails
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Tue, 28 Oct 2014 12:07:37 +0000 (09:07 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 23 Dec 2014 10:57:01 +0000 (08:57 -0200)
commit9587a3fc4333efd9cfd56a0754cabf76bdcdb3b0
treee4e94aa13441bdee778cc2d5a25fce8f41ac60b4
parent707acfc072676d4b9f5db8d2082e2f0c79c34bb4
[media] v4l: omap4iss: Stop started entities when pipeline start fails

If an entity can't be started when starting a pipeline we need to clean
up by stopping all entities that have been successfully started.
Otherwise the hardware and software states won't match, potentially
leading to crashes (for instance due to the CSI2 receiver receiving
interrupts with a NULL pipeline pointer).

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/staging/media/omap4iss/iss.c