Commit a2252add authored by Maíra Canal's avatar Maíra Canal Committed by Marge Bot
Browse files

v3dv: initialize fd variable for proper error handling

Currently, process_singlesync_signals() checks if fd == -1 to handle
possible errors in the drmSyncobjExportSyncFile function. But, fd is not
initialized, which means that drmSyncobjExportSyncFile might fail and
the error will not be handled as fd might not be equal to -1.

Therefore, initialize the fd variable with value -1 to ensure proper
error handling.

cc: mesa-stable

Signed-off-by: Maíra Canal's avatarMaíra Canal <>
Reviewed-by: Iago Toral's avatarIago Toral Quiroga <>
Part-of: <!20475>
parent f4b4bc0c
Pipeline #776801 waiting for manual action with stages
......@@ -490,7 +490,7 @@ process_singlesync_signals(struct v3dv_queue *queue,
if (device->pdevice->caps.multisync)
return VK_SUCCESS;
int fd;
int fd = -1;
Supports Markdown
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