media: v4l: vsp1: Fix uif null pointer access
authorBiju Das <biju.das.jz@bp.renesas.com>
Mon, 1 Mar 2021 12:08:28 +0000 (13:08 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Mar 2021 16:11:29 +0000 (17:11 +0100)
commit3ab804278382f6b118f260446b23e5ae684e59c8
tree3b4c6ebb3f81b50ce3f3843c8e2b7827266332bc
parent0c2b5e1a5cb487d20214849d6ea75afdbcea1953
media: v4l: vsp1: Fix uif null pointer access

commit 6732f313938027a910e1f7351951ff52c0329e70 upstream.

RZ/G2L SoC has no UIF. This patch fixes null pointer access, when UIF
module is not used.

Fixes: 5e824f989e6e8("media: v4l: vsp1: Integrate DISCOM in display pipeline")
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>
drivers/media/platform/vsp1/vsp1_drm.c