diff options
author | Andy Shevchenko <[email protected]> | 2021-07-12 21:21:21 +0300 |
---|---|---|
committer | Rafael J. Wysocki <[email protected]> | 2021-07-19 16:22:01 +0200 |
commit | 71f6428332844f38c7cb10461d9f29e9c9b983a0 (patch) | |
tree | a3f548533d49a94a35d17a8661fb27a075355965 /tools/perf/scripts/python/bin/export-to-postgresql-report | |
parent | 2734d6c1b1a089fb593ef6a23d4b70903526fe0c (diff) |
ACPI: utils: Fix reference counting in for_each_acpi_dev_match()
Currently it's possible to iterate over the dangling pointer in case the device
suddenly disappears. This may happen becase callers put it at the end of a loop.
Instead, let's move that call inside acpi_dev_get_next_match_dev().
Fixes: 803abec64ef9 ("media: ipu3-cio2: Add cio2-bridge to ipu3-cio2 driver")
Fixes: bf263f64e804 ("media: ACPI / bus: Add acpi_dev_get_next_match_dev() and helper macro")
Fixes: edbd1bc4951e ("efi/dev-path-parser: Switch to use for_each_acpi_dev_match()")
Signed-off-by: Andy Shevchenko <[email protected]>
Reviewed-by: Daniel Scally <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions