media: nxp: Fix wrong return pointer check in mxc_isi_crossbar_init()
authorYang Yingliang <yangyingliang@huawei.com>
Tue, 25 Jul 2023 13:00:24 +0000 (21:00 +0800)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Thu, 10 Aug 2023 05:58:37 +0000 (07:58 +0200)
commit4b60db99babad0254129ddc58e0927ffa9e93e35
treec851064ebeb2a6eb21ef66ce88fd23c61f7775bd
parent0ca2fbab99b12bb81fceaafe5495c00d76789a37
media: nxp: Fix wrong return pointer check in mxc_isi_crossbar_init()

It should check 'xbar->inputs', when allocate memory for it.

Cc: stable@vger.kernel.org
Fixes: cf21f328fcaf ("media: nxp: Add i.MX8 ISI driver")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/platform/nxp/imx8-isi/imx8-isi-crossbar.c