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

Unverified Commit 29ea278c authored by Jerry Huang's avatar Jerry Huang Committed by Michael Bestas
Browse files

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
parent 33eeccc2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;