video: driver: Return proper error code

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

Bug: 273301608
Test: CtsMediaMiscTestCases android.media.misc.cts.ResourceManagerTest#testReclaimResourceMixVsNonsecureHighResolution
Change-Id: I50739758df36d534970101977a1f64a465ba3e77
This commit is contained in:
Jerry Huang
2023-04-06 19:50:01 +08:00
committed by Michael Bestas
parent 33eeccc251
commit 29ea278cb8

View File

@@ -5818,7 +5818,7 @@ static int msm_vidc_check_mbpf_supported(struct msm_vidc_inst *inst)
if (mbpf > core->resources.max_mbpf) {
msm_vidc_print_running_insts(inst->core);
return -EBUSY;
return -ENOMEM;
}
return 0;