summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/channel_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/channel_gk20a.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
index 2ec1ffe4..f34df520 100644
--- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
@@ -1327,7 +1327,7 @@ int gk20a_channel_alloc_priv_cmdbuf(struct channel_gk20a *c, u32 orig_size,
1327 free_count = (q->size - (q->put - q->get) - 1) % q->size; 1327 free_count = (q->size - (q->put - q->get) - 1) % q->size;
1328 1328
1329 if (size > free_count) 1329 if (size > free_count)
1330 return -EAGAIN; 1330 return -ENOSPC;
1331 1331
1332 e = kzalloc(sizeof(struct priv_cmd_entry), GFP_KERNEL); 1332 e = kzalloc(sizeof(struct priv_cmd_entry), GFP_KERNEL);
1333 if (!e) { 1333 if (!e) {
@@ -2022,7 +2022,7 @@ int gk20a_submit_channel_gpfifo(struct channel_gk20a *c,
2022 2022
2023 if (err) { 2023 if (err) {
2024 gk20a_err(d, "timeout waiting for gpfifo space"); 2024 gk20a_err(d, "timeout waiting for gpfifo space");
2025 err = -EAGAIN; 2025 err = -ENOSPC;
2026 goto clean_up; 2026 goto clean_up;
2027 } 2027 }
2028 2028