diff options
| author | Johan Hovold <johan@kernel.org> | 2026-05-08 16:44:46 +0200 |
|---|---|---|
| committer | Patrik Jakobsson <patrik.r.jakobsson@gmail.com> | 2026-05-13 20:15:17 +0200 |
| commit | 84d1c9b416d54afe760ca4c378bd95c89261254c (patch) | |
| tree | 4e53236535f0678ba5c00541e7a0d2f10882390b /tools/lib/python/feat | |
| parent | 657a091ab6d01d0091b77660c75cfed573c9a53e (diff) | |
| download | linux-84d1c9b416d54afe760ca4c378bd95c89261254c.tar.gz linux-84d1c9b416d54afe760ca4c378bd95c89261254c.zip | |
drm/gma500/oaktrail_lvds: fix i2c adapter leaks on init
The LVDS init code looks up an I2C adapter using i2c_get_adapter() and
tries to read the EDID before falling back to allocating and registering
its own adapter.
Make sure to drop the references taken by i2c_get_adapter() when falling
back to allocating an adapter as well as on late errors to allow the
looked up adapter to be deregistered.
Fixes: 1b082ccf5901 ("gma500: Add Oaktrail support")
Cc: stable@vger.kernel.org # 3.3
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Link: https://patch.msgid.link/20260508144446.59722-4-johan@kernel.org
Diffstat (limited to 'tools/lib/python/feat')
0 files changed, 0 insertions, 0 deletions
