Commit 1795f9ca authored by Marc-André Lureau's avatar Marc-André Lureau Committed by Dave Airlie

renderer: fix eventfd check

Signed-off-by: default avatarMarc-André Lureau <marcandre.lureau@redhat.com>
parent 51bf7603
......@@ -3736,7 +3736,7 @@ vrend_renderer_fini(void)
return;
vrend_free_sync_thread();
if (vrend_state.eventfd == -1) {
if (vrend_state.eventfd != -1) {
close(vrend_state.eventfd);
vrend_state.eventfd = -1;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment