diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/fence_gk20a.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/fence_gk20a.c b/drivers/gpu/nvgpu/gk20a/fence_gk20a.c index 60858424..027ff462 100644 --- a/drivers/gpu/nvgpu/gk20a/fence_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/fence_gk20a.c | |||
@@ -244,7 +244,7 @@ int gk20a_fence_from_semaphore( | |||
244 | "f-gk20a-0x%04x", | 244 | "f-gk20a-0x%04x", |
245 | nvgpu_semaphore_gpu_ro_va(semaphore)); | 245 | nvgpu_semaphore_gpu_ro_va(semaphore)); |
246 | if (!sync_fence) | 246 | if (!sync_fence) |
247 | return -1; | 247 | return -ENOMEM; |
248 | } | 248 | } |
249 | #endif | 249 | #endif |
250 | 250 | ||
@@ -319,7 +319,7 @@ int gk20a_fence_from_syncpt( | |||
319 | sync_fence = nvgpu_nvhost_sync_create_fence(nvhost_dev, | 319 | sync_fence = nvgpu_nvhost_sync_create_fence(nvhost_dev, |
320 | id, value, "fence"); | 320 | id, value, "fence"); |
321 | if (IS_ERR(sync_fence)) | 321 | if (IS_ERR(sync_fence)) |
322 | return -1; | 322 | return PTR_ERR(sync_fence); |
323 | } | 323 | } |
324 | #endif | 324 | #endif |
325 | 325 | ||