]> git.baikalelectronics.ru Git - kernel.git/commit
media: atomisp: fix call to g_frame_interval
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sun, 21 Jun 2020 06:32:27 +0000 (08:32 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sat, 18 Jul 2020 05:12:46 +0000 (07:12 +0200)
commite9e5d1071e68897a01faa4e9fb6a1695cccd642d
tree2dae557dd1bac42112281b7142497d0a9694edac
parentf3e69034b0ffa5cf72c7c7549fba1a996c956e66
media: atomisp: fix call to g_frame_interval

The media core has now a check if fi->pad is bigger than zero
or bigger than sd->entity.num_pads, if the media controller
is defined.

This causes a call to g_frame_interval to return -EINVAL.

Fix it by first cleaning up the struct.

Tested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/pci/atomisp_cmd.c