]> 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)
commit5968b54374e76427bd60505e252e684ccdff3226
treefa1ab8f54b127bf57506fecf4f7d24763e209b50
parent17824255fa4f4759ad1e8f514272ed194d5c0b14
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