From dc4de606315560a2469a5213ef83ddd8795f236c Mon Sep 17 00:00:00 2001 From: Mihir Ganu Date: Thu, 9 Apr 2020 11:36:41 -0700 Subject: [PATCH] msm: vidc: Return ENOMEM for VP9 decode overload case Return ENOMEM instead of ENOTSUPP when VP9 decode overload occurs so that userspace can handle this error case correctly. ENOTSUPP is not available in userspace. Change-Id: I5260812bb00fde7eed02a29943a67af038e3c001 Signed-off-by: Mihir Ganu --- msm/vidc/msm_vdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/msm/vidc/msm_vdec.c b/msm/vidc/msm_vdec.c index 5e2840d3999a..5b218d603690 100644 --- a/msm/vidc/msm_vdec.c +++ b/msm/vidc/msm_vdec.c @@ -666,7 +666,7 @@ int msm_vdec_s_fmt(struct msm_vidc_inst *inst, struct v4l2_format *f) if (f->fmt.pix_mp.pixelformat == V4L2_PIX_FMT_VP9) { if (msm_vidc_check_for_vp9d_overload(inst->core)) { s_vpr_e(inst->sid, "VP9 Decode overload\n"); - rc = -ENOTSUPP; + rc = -ENOMEM; goto err_invalid_fmt; } }