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: d4009e110b76 ("media: ipu3-cio2: Add cio2-bridge to ipu3-cio2 driver") Fixes: 8e610379f293 ("media: ACPI / bus: Add acpi_dev_get_next_match_dev() and helper macro") Fixes: 60510a34ffa7 ("efi/dev-path-parser: Switch to use for_each_acpi_dev_match()") Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com> Reviewed-by: Daniel Scally <djrscally@gmail.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>