Skip to content

Commit db2ae26

Browse files
bijudasgregkh
authored andcommitted
media: v4l: vsp1: Fix bru null pointer access
commit ac8d82f upstream. RZ/G2L SoC has only BRS. This patch fixes null pointer access,when only BRS is enabled. Fixes: cbb7fa4("media: v4l: vsp1: Rename BRU to BRx") Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 465fd41 commit db2ae26

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/media/platform/vsp1/vsp1_drm.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ static int vsp1_du_pipeline_setup_brx(struct vsp1_device *vsp1,
245245
brx = &vsp1->bru->entity;
246246
else if (pipe->brx && !drm_pipe->force_brx_release)
247247
brx = pipe->brx;
248-
else if (!vsp1->bru->entity.pipe)
248+
else if (vsp1_feature(vsp1, VSP1_HAS_BRU) && !vsp1->bru->entity.pipe)
249249
brx = &vsp1->bru->entity;
250250
else
251251
brx = &vsp1->brs->entity;

0 commit comments

Comments
 (0)