linux/drivers/media/pci/intel/ipu3
Andy Shevchenko 294c34e704 media: ipu3-cio2: Drop reference on error path in cio2_bridge_connect_sensor()
The commit 71f6428332 ("ACPI: utils: Fix reference counting in
for_each_acpi_dev_match()") moved adev assignment outside of error
path and hence made acpi_dev_put(sensor->adev) a no-op. We still
need to drop reference count on error path, and to achieve that,
replace sensor->adev by locally assigned adev.

Fixes: 71f6428332 ("ACPI: utils: Fix reference counting in for_each_acpi_dev_match()")
Depends-on: fc68f42aa7 ("ACPI: fix NULL pointer dereference")
Reported-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2021-08-26 18:52:30 +02:00
..
cio2-bridge.c media: ipu3-cio2: Drop reference on error path in cio2_bridge_connect_sensor() 2021-08-26 18:52:30 +02:00
cio2-bridge.h media: ipu3-cio2: Add cio2-bridge to ipu3-cio2 driver 2021-01-26 19:37:50 +01:00
ipu3-cio2-main.c media: v4l2-subdev: add subdev-wide state struct 2021-06-17 10:01:27 +02:00
ipu3-cio2.h media: ipu3-cio2: Add cio2-bridge to ipu3-cio2 driver 2021-01-26 19:37:50 +01:00
Kconfig media: ipu3-cio2: Build bridge only if ACPI is enabled 2021-02-06 09:40:04 +01:00
Makefile media: ipu3-cio2: Add cio2-bridge to ipu3-cio2 driver 2021-01-26 19:37:50 +01:00