diff options
| author | Andy Shevchenko <[email protected]> | 2018-02-09 17:38:33 +0200 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2018-02-12 10:41:09 +0100 |
| commit | 4222f38ca3b7ae30ace582077677cec8b88fac36 (patch) | |
| tree | 505249ffae6f4b77276b96a3f020aa9f64e3ffb1 /scripts/gcc-plugins/randomize_layout_plugin.c | |
| parent | 7928b2cbe55b2a410a0f5c1f154610059c57b1b2 (diff) | |
ACPI / bus: Do not traverse through non-existed device table
When __acpi_match_device() is called it would be possible to have
ACPI ID table a NULL pointer. To avoid potential dereference,
check for this before traverse.
While here, remove redundant 'else'.
Note, this patch implies a bit of refactoring acpi_of_match_device()
to return pointer to OF ID when matched followed by refactoring
__acpi_match_device() to return either ACPI or OF ID when matches.
Signed-off-by: Andy Shevchenko <[email protected]>
Reviewed-by: Mika Westerberg <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions