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:
committed by
Michael Bestas
parent
33eeccc251
commit
29ea278cb8
@@ -5818,7 +5818,7 @@ static int msm_vidc_check_mbpf_supported(struct msm_vidc_inst *inst)
|
|||||||
|
|
||||||
if (mbpf > core->resources.max_mbpf) {
|
if (mbpf > core->resources.max_mbpf) {
|
||||||
msm_vidc_print_running_insts(inst->core);
|
msm_vidc_print_running_insts(inst->core);
|
||||||
return -EBUSY;
|
return -ENOMEM;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user