diff options
| author | Andy Shevchenko <[email protected]> | 2021-08-26 10:53:24 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2021-08-26 16:52:30 +0000 |
| commit | 294c34e704e78d641b039064ce72d4531afe0088 (patch) | |
| tree | 5582b4cb66a7971bd6f4fd27abe2ebbbcf62c636 /scripts/gcc-plugins/randomize_layout_plugin.c | |
| parent | Linux 5.14-rc7 (diff) | |
| download | kernel-294c34e704e78d641b039064ce72d4531afe0088.tar.gz kernel-294c34e704e78d641b039064ce72d4531afe0088.zip | |
media: ipu3-cio2: Drop reference on error path in cio2_bridge_connect_sensor()
The commit 71f642833284 ("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: 71f642833284 ("ACPI: utils: Fix reference counting in for_each_acpi_dev_match()")
Depends-on: fc68f42aa737 ("ACPI: fix NULL pointer dereference")
Reported-by: Jens Axboe <[email protected]>
Signed-off-by: Andy Shevchenko <[email protected]>
Acked-by: Sakari Ailus <[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
