backend/drm: fix NULL data in handle_drm_event
wl_event_loop_add_fd was called with a NULL data argument, but the
function expects the data argument to be set to the wlr_drm_backend.
Fixes: 053ebe7c27
("backend/drm: terminate display on drmHandleEvent failure")
This commit is contained in:
parent
a93b18dbd5
commit
f94eb174c7
|
@ -215,7 +215,7 @@ struct wlr_backend *wlr_drm_backend_create(struct wl_display *display,
|
||||||
|
|
||||||
struct wl_event_loop *event_loop = wl_display_get_event_loop(display);
|
struct wl_event_loop *event_loop = wl_display_get_event_loop(display);
|
||||||
drm->drm_event = wl_event_loop_add_fd(event_loop, drm->fd,
|
drm->drm_event = wl_event_loop_add_fd(event_loop, drm->fd,
|
||||||
WL_EVENT_READABLE, handle_drm_event, NULL);
|
WL_EVENT_READABLE, handle_drm_event, drm);
|
||||||
if (!drm->drm_event) {
|
if (!drm->drm_event) {
|
||||||
wlr_log(WLR_ERROR, "Failed to create DRM event source");
|
wlr_log(WLR_ERROR, "Failed to create DRM event source");
|
||||||
goto error_fd;
|
goto error_fd;
|
||||||
|
|
Loading…
Reference in New Issue