diff options
| author | Johan Hovold <johan@kernel.org> | 2026-05-08 16:44:45 +0200 |
|---|---|---|
| committer | Patrik Jakobsson <patrik.r.jakobsson@gmail.com> | 2026-05-13 20:15:17 +0200 |
| commit | 657a091ab6d01d0091b77660c75cfed573c9a53e (patch) | |
| tree | b6609c640f66b60f8398787e0f9f2351dc2d6ffe /tools/perf/scripts/python | |
| parent | 950953f774b3f69da6f413e045ef075e1f3da2df (diff) | |
| download | linux-657a091ab6d01d0091b77660c75cfed573c9a53e.tar.gz linux-657a091ab6d01d0091b77660c75cfed573c9a53e.zip | |
drm/gma500/oaktrail_lvds: fix hang on init failure
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.
The error handling does not separate these cases so on a late init
failure it will try to deregister and free also an adapter that had
previously been registered. Since i2c_get_adapter() takes another
reference to the adapter, deregistration hangs indefinitely while
waiting for the reference to be released.
Fix this by only destroying adapters allocated during LVDS init on
errors.
Fixes: a57ebfc0b4da ("drm/gma500: Make oaktrail lvds use ddc adapter from drm_connector")
Cc: stable@vger.kernel.org # 6.0
Cc: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
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-3-johan@kernel.org
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
