summaryrefslogtreecommitdiff
path: root/msm/vidc/msm_vidc_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'msm/vidc/msm_vidc_common.c')
-rw-r--r--msm/vidc/msm_vidc_common.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/msm/vidc/msm_vidc_common.c b/msm/vidc/msm_vidc_common.c
index 37d6f7f..cbbebbe 100644
--- a/msm/vidc/msm_vidc_common.c
+++ b/msm/vidc/msm_vidc_common.c
@@ -3557,7 +3557,7 @@ static int msm_vidc_load_resources(int flipped_state,
"H/W is overloaded. needed: %d max: %d\n",
video_load, max_video_load);
msm_vidc_print_running_insts(inst->core);
- return -EBUSY;
+ return -ENOMEM;
}
if (video_load + image_load > max_video_load + max_image_load) {
@@ -3565,7 +3565,7 @@ static int msm_vidc_load_resources(int flipped_state,
"H/W is overloaded. needed: [video + image][%d + %d], max: [video + image][%d + %d]\n",
video_load, image_load, max_video_load, max_image_load);
msm_vidc_print_running_insts(inst->core);
- return -EBUSY;
+ return -ENOMEM;
}
hdev = core->device;
@@ -5925,7 +5925,7 @@ int msm_comm_check_memory_supported(struct msm_vidc_inst *vidc_inst)
"%s: video mem overshoot - reached %llu MB, max_limit %llu MB\n",
__func__, total_mem_size >> 20, memory_limit_mbytes);
msm_comm_print_insts_info(core);
- return -EBUSY;
+ return -ENOMEM;
}
if (!is_secure_session(vidc_inst)) {
@@ -5940,7 +5940,7 @@ int msm_comm_check_memory_supported(struct msm_vidc_inst *vidc_inst)
"%s: insufficient device addr space, required %llu, available %llu\n",
__func__, non_sec_mem_size, non_sec_cb_size);
msm_comm_print_insts_info(core);
- return -EINVAL;
+ return -ENOMEM;
}
}