mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 20:38:06 +02:00
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:
parent
78c73a4aeb
commit
6a55581d41
1 changed files with 1 additions and 1 deletions
|
|
@ -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) ||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue