intel/executor: Fix check for open() failure
Fixes: 71ae31dbd8 ("intel/executor: Allow selecting a device to use")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34400>
This commit is contained in:
@@ -305,7 +305,7 @@ open_intel_render_device(drmDevicePtr dev,
|
||||
return false;
|
||||
|
||||
*fd = open(dev->nodes[DRM_NODE_RENDER], O_RDWR | O_CLOEXEC);
|
||||
if (fd < 0)
|
||||
if (*fd < 0)
|
||||
return false;
|
||||
|
||||
if (!intel_get_device_info_from_fd(*fd, devinfo, -1, -1) ||
|
||||
|
||||
Reference in New Issue
Block a user