From f94eb174c793c09adad8fbadb3333b22f28ee743 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 19 Jul 2021 14:49:52 +0200 Subject: 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: 053ebe7c278b ("backend/drm: terminate display on drmHandleEvent failure") --- backend/drm/backend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backend/drm') diff --git a/backend/drm/backend.c b/backend/drm/backend.c index a1c7ce9c..eb22d1a3 100644 --- a/backend/drm/backend.c +++ b/backend/drm/backend.c @@ -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); 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) { wlr_log(WLR_ERROR, "Failed to create DRM event source"); goto error_fd; -- cgit v1.2.3