This series contains patches pertaining the drm_dev_register() and
drm_dev_unregister() functions. Turns out drm_dev_register() doesn't
properly unwind its effects in the error path, causing confusion and
bugs.

Additionally, a related patch for i915 is bundled, as i915 mistakenly
calls drm_dev_unregister() in the error path triggered by failing
drm_dev_register(), which on one hand introduced a WARN_ON() in
drm_client_sysrq_unregister(), caused by calling it without a previous
_register() (as it was skipped in drm_dev_register()); but on the other
hand silenced yet another WARN_ON() later on in the error path in
drm_mode_config_cleanup(). With the other patch, the driver can just
handle the error from drm_dev_register() cleanly without calling
drm_dev_unregister(). This is explained in detail in both the patches.

Krzysztof Karas (1):
  drm: Unwind drm device registration upon error

Krzysztof Niemiec (1):
  drm/i915: Remove drm_dev_unregister() from the error path during
    i915_driver_register()

 drivers/gpu/drm/drm_drv.c          | 2 ++
 drivers/gpu/drm/i915/i915_driver.c | 1 -
 2 files changed, 2 insertions(+), 1 deletion(-)

-- 
2.55.0

Reply via email to