2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-14 00:24:15 +08:00
linux-next/drivers/media/platform/rcar-vin
Jacopo Mondi 9863bc8695 media: rcar-vin: Cleanup notifier in error path
During the notifier initialization, memory for the list of associated async
subdevices is reserved during the fwnode endpoint parsing from the v4l2-async
framework. If the notifier registration fails, that memory should be released
and the notifier 'cleaned up'.

Catch the notifier registration error and perform the cleanup both for the
group and the parallel notifiers.

Signed-off-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
Acked-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-07-04 09:18:16 -04:00
..
Kconfig media: Remove depends on HAS_DMA in case of platform dependency 2018-05-28 16:17:08 -04:00
Makefile media: rcar-csi2: add Renesas R-Car MIPI CSI-2 receiver driver 2018-05-28 13:44:55 -04:00
rcar-core.c media: rcar-vin: Cleanup notifier in error path 2018-07-04 09:18:16 -04:00
rcar-csi2.c media: rcar-csi2: set default format if a unsupported one is requested 2018-05-28 13:46:48 -04:00
rcar-dma.c media: rcar-vin: Rename 'digital' to 'parallel' 2018-07-04 09:08:14 -04:00
rcar-v4l2.c media: rcar-vin: Rename 'digital' to 'parallel' 2018-07-04 09:08:14 -04:00
rcar-vin.h media: rcar-vin: Create a group notifier 2018-07-04 09:10:22 -04:00