Skip to contentSkip to conversation

ACPI / bus: Do not traverse through non-existed device table

PATCH Superseded Andy Shevchenko 1 participant 1 message Feb 1, 2018

Subsystems (2)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

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.