From 4f92ecde8290fd98572716f13c6eadf612a6a029 Mon Sep 17 00:00:00 2001 From: Alexander Orzechowski Date: Wed, 30 Aug 2023 12:26:04 -0400 Subject: [PATCH] renderer_autocreate_with_drm_fd: Ensure fd isn't bogus --- render/wlr_renderer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/render/wlr_renderer.c b/render/wlr_renderer.c index 523079a8..36837eda 100644 --- a/render/wlr_renderer.c +++ b/render/wlr_renderer.c @@ -424,6 +424,8 @@ out: } struct wlr_renderer *renderer_autocreate_with_drm_fd(int drm_fd) { + assert(drm_fd >= 0); + return renderer_autocreate(NULL, drm_fd); }