Commit 221006de authored by Marc-André Lureau's avatar Marc-André Lureau Committed by Dave Airlie

vrend: check eventfd value before close

Signed-off-by: default avatarMarc-André Lureau <marcandre.lureau@gmail.com>
parent 66708981
......@@ -3731,8 +3731,10 @@ vrend_renderer_fini(void)
return;
vrend_free_sync_thread();
close(vrend_state.eventfd);
vrend_state.eventfd = -1;
if (vrend_state.eventfd == -1) {
close(vrend_state.eventfd);
vrend_state.eventfd = -1;
}
vrend_decode_reset(false);
vrend_object_fini_resource_table();
......
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