backend-drm: fix deinit unexpected connector

The `drm_output_deinit` should use the drm device passed by the
function, should not use the `b->drm` device.

Signed-off-by: Zhou Liang <174381115@qq.com>
This commit is contained in:
Zhou Liang 2023-12-19 20:32:17 +08:00 committed by zhou liang
parent 66aaa41074
commit b288e662d6

View file

@ -2293,7 +2293,7 @@ drm_output_deinit(struct weston_output *base)
{
struct drm_output *output = to_drm_output(base);
struct drm_backend *b = output->backend;
struct drm_device *device = b->drm;
struct drm_device *device = output->device;
struct drm_pending_state *pending;
if (!b->compositor->shutting_down) {