Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c7eadc26 authored by Uma Mehta's avatar Uma Mehta
Browse files

video: driver: Return proper error code



Return correct error code when session is not
supported and when max memory limit is
reached.

Change-Id: I5ed3770ff4333b8828accbbb11b740ca316440b5
Signed-off-by: default avatarUma Mehta <quic_umamehta@quicinc.com>
parent dcfc8ec6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -5915,7 +5915,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)) {
@@ -5930,7 +5930,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;
		}
	}