zink: initialize drm_fd to -1
What does this MR do and why?
The zink_internal_create_screen()
function initializes
screen->drm_fd
to 0, a valid file descriptor value, via rzalloc
.
If an error is found during initialization, the zink_destroy_screen()
function is invoked in the fail
label and the screen->drm_fd
is
closed because its value is 0 and screen->drm_fd != -1
is checked.
Initialize screen->drm_fd
to -1 to avoid this issue.
Resolves: #10191 (closed)