ACPI / bus: Do not traverse through non-existed device table
PATCH v2 2/6 ACPI / bus: Do not traverse through non-existed device table
Quoted 5 lines · Sinan Kaya
Quoted 2 lines · Andy Shevchenko
When
__acpi_match_device()is called it would be possible to have ACPI ID table a MULL pointer. To avoid potential dereference,NULL
Thanks, will fix later.
Quoted 1 line
Why not bail out here immediately if ids is null?
Because of the code which wasn't in context of this patch.
See also patch 1 in the series.
It's about how acpi_driver_match_device() uses it.