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>
This commit is contained in:
parent
8b3becf524
commit
66aaa41074
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user