From 66aaa41074f52fea58b68c1ef0d2ef02ef917161 Mon Sep 17 00:00:00 2001 From: Zhou Liang <174381115@qq.com> Date: Tue, 19 Dec 2023 20:28:04 +0800 Subject: [PATCH] backend-drm: fix drm add connector to unexpected drm device If both the head and writeback are not found, then we should add connectors to the drm device passed by the function, not the b->drm device. Signed-off-by: Zhou Liang <174381115@qq.com> --- libweston/backend-drm/drm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libweston/backend-drm/drm.c b/libweston/backend-drm/drm.c index e4ddd04c..f8831dbf 100644 --- a/libweston/backend-drm/drm.c +++ b/libweston/backend-drm/drm.c @@ -3131,7 +3131,7 @@ drm_backend_update_connectors(struct drm_device *device, } else if (writeback) { ret = drm_writeback_update_info(writeback, conn); } else { - ret = drm_backend_add_connector(b->drm, conn, drm_device); + ret = drm_backend_add_connector(device, conn, drm_device); } if (ret < 0)