linux/drivers/media/platform/vsp1
Kieran Bingham 639fa43d59 media: vsp1: Fix BRx conditional path in WPF
When a BRx is provided by a pipeline, the WPF must determine the master
layer. Currently the condition to check this identifies pipe->bru ||
pipe->num_inputs > 1.

The code then moves on to dereference pipe->bru, thus the check fails
static analysers on the possibility that pipe->num_inputs could be
greater than 1 without pipe->bru being set.

The reality is that the pipeline must have a BRx to support more than
one input, thus this could never cause a fault - however it also
identifies that the num_inputs > 1 check is redundant.

Remove the redundant check - and always configure the master layer
appropriately when we have a BRx configured in our pipeline.

Fixes: 6134148f60 ("v4l: vsp1: Add support for the BRS entity")

Cc: stable@vger.kernel.org
Suggested-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2018-04-04 06:27:28 -04:00
..
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
vsp1.h v4l: vsp1: Add support for multiple LIF instances 2017-08-03 16:17:20 +03:00
vsp1_bru.c v4l: vsp1: Add support for the BRS entity 2017-07-29 23:46:56 +03:00
vsp1_bru.h v4l: vsp1: Add support for the BRS entity 2017-07-29 23:46:56 +03:00
vsp1_clu.c [media] vsp1: fix CodingStyle violations on multi-line comments 2016-09-19 15:18:01 -03:00
vsp1_clu.h [media] v4l: vsp1: clu: Support runtime modification of controls 2016-06-28 12:25:31 -03:00
vsp1_dl.c media: v4l: vsp1: Fix header display list status check in continuous mode 2018-02-26 10:23:00 -05:00
vsp1_dl.h v4l: vsp1: Don't recycle active list at display start 2017-07-29 23:46:56 +03:00
vsp1_drm.c media: v4l: vsp1: Print the correct blending unit name in debug messages 2018-02-26 10:24:12 -05:00
vsp1_drm.h drm: rcar-du: Repair vblank for DRM page flips using the VSP 2017-08-03 16:17:30 +03:00
vsp1_drv.c media: vsp1: Prevent suspending and resuming DRM pipelines 2017-12-08 10:40:10 -05:00
vsp1_entity.c v4l: vsp1: Add support for multiple LIF instances 2017-08-03 16:17:20 +03:00
vsp1_entity.h media updates for v4.14-rc1 2017-09-07 12:53:14 -07:00
vsp1_hgo.c [media] vsp1: set V4L2_CTRL_FLAG_MODIFY_LAYOUT for histogram controls 2017-04-14 22:55:54 -03:00
vsp1_hgo.h [media] v4l: vsp1: Add HGO support 2017-04-14 22:48:33 -03:00
vsp1_hgt.c [media] v4l: vsp1: Add HGT support 2017-04-14 22:53:00 -03:00
vsp1_hgt.h [media] v4l: vsp1: Add HGT support 2017-04-14 22:53:00 -03:00
vsp1_histo.c [media] v4l: vsp1: Add histogram support 2017-04-14 22:42:14 -03:00
vsp1_histo.h [media] v4l: vsp1: Add histogram support 2017-04-14 22:42:14 -03:00
vsp1_hsit.c [media] v4l: vsp1: Fix multi-line comment style 2017-04-10 08:31:39 -03:00
vsp1_hsit.h
vsp1_lif.c media: v4l: vsp1: Fix video output on R8A77970 2018-02-26 10:27:28 -05:00
vsp1_lif.h v4l: vsp1: Add support for multiple LIF instances 2017-08-03 16:17:20 +03:00
vsp1_lut.c [media] v4l: vsp1: Replace .set_memory() with VSP1_ENTITY_PARAMS_PARTITION 2016-09-19 14:58:59 -03:00
vsp1_lut.h [media] v4l: vsp1: lut: Support runtime modification of controls 2016-06-28 12:24:37 -03:00
vsp1_pipe.c media updates for v4.14-rc1 2017-09-07 12:53:14 -07:00
vsp1_pipe.h media updates for v4.14-rc1 2017-09-07 12:53:14 -07:00
vsp1_regs.h media: v4l: vsp1: Fix video output on R8A77970 2018-02-26 10:27:28 -05:00
vsp1_rpf.c media: v4l: vsp1: Allow entities to participate in the partition algorithm 2017-08-20 09:32:49 -04:00
vsp1_rwpf.c [media] v4l: vsp1: wpf: Implement rotation support 2017-04-14 22:36:03 -03:00
vsp1_rwpf.h [media] v4l: vsp1: wpf: Implement rotation support 2017-04-14 22:36:03 -03:00
vsp1_sru.c media: v4l: vsp1: Allow entities to participate in the partition algorithm 2017-08-20 09:32:49 -04:00
vsp1_sru.h
vsp1_uds.c media: v4l: vsp1: Allow entities to participate in the partition algorithm 2017-08-20 09:32:49 -04:00
vsp1_uds.h [media] v4l: vsp1: Simplify alpha propagation 2016-06-28 12:29:33 -03:00
vsp1_video.c media updates for v4.14-rc1 2017-09-07 12:53:14 -07:00
vsp1_video.h Merge branch 'topic/vsp1' into patchwork 2016-07-13 13:43:48 -03:00
vsp1_wpf.c media: vsp1: Fix BRx conditional path in WPF 2018-04-04 06:27:28 -04:00