]> git.baikalelectronics.ru Git - kernel.git/commit
media: atomisp: Don't try to parse unexpected ACPI object type
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 26 Jun 2020 12:19:20 +0000 (14:19 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sat, 18 Jul 2020 05:22:02 +0000 (07:22 +0200)
commit696b5d4b84794ce9fb44dbbdf13c11a879e5e78c
treefa1ab8f54b127bf57506fecf4f7d24763e209b50
parent156b669a5fe49d462d97f85601154e3706ca365f
media: atomisp: Don't try to parse unexpected ACPI object type

There are devices with completely different _DSM() format,
and accessing object as a package leads to crashes.

Bail out in the case of unexpected object type.

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