[Mesa-dev] [PATCH] v3d: Fix coverity control flow warning
Sagar Ghuge
sagar.ghuge at intel.com
Fri Aug 3 16:49:03 UTC 2018
if statement should check return value
of drmSyncobjImportSyncFile function.
Fixes CID 1438127
Signed-off-by: Sagar Ghuge <sagar.ghuge at intel.com>
---
src/gallium/drivers/v3d/v3d_fence.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/v3d/v3d_fence.c b/src/gallium/drivers/v3d/v3d_fence.c
index 0edcb66d91..58d118a288 100644
--- a/src/gallium/drivers/v3d/v3d_fence.c
+++ b/src/gallium/drivers/v3d/v3d_fence.c
@@ -79,7 +79,7 @@ v3d_fence_finish(struct pipe_screen *pscreen,
return false;
}
- drmSyncobjImportSyncFile(screen->fd, syncobj, f->fd);
+ ret = drmSyncobjImportSyncFile(screen->fd, syncobj, f->fd);
if (ret) {
fprintf(stderr, "Failed to import fence to syncobj: %d\n", ret);
return false;
--
2.17.1
More information about the mesa-dev
mailing list