media: atomisp: avoid OOPS due to non-existing ref_frames
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 27 May 2020 13:46:54 +0000 (15:46 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 11 Jun 2020 16:15:51 +0000 (18:15 +0200)
commitbbed5b89e18148638cdd17fcc2d1d9a7368ddfe6
tree24c3e06612649ac5d582a92062c699e3f17288dc
parent9955d906f28098dfb7be9b5c75006c5f2b431772
media: atomisp: avoid OOPS due to non-existing ref_frames

stage->args->delay_frames array could point to NULL frames.

What's weird is that we didn't notice this behavior with the
Intel Aero Yocto code.

Handle it, while adding a notice at the code, as this could
be due to some broken pipeline setup.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/pci/isp/kernels/ref/ref_1.0/ia_css_ref.host.c
drivers/staging/media/atomisp/pci/sh_css_sp.c