From: ming_qian Date: Wed, 11 Sep 2019 08:59:58 +0000 (+0800) Subject: MMFMWK-8552-2: correct the error no when reqbufs fail X-Git-Tag: rel_imx_4.19.35_1.1.0~58 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=48d43feae68b35ed4eca6c5b4ef294183a20e1d9;p=linux.git MMFMWK-8552-2: correct the error no when reqbufs fail if stream status is on, reqbufs will fail, return -EBUSY instead of -EINVAL Signed-off-by: ming_qian (cherry picked from commit 65cfc81f73639c633d9e9b7c23c9c58443fa661f) --- diff --git a/drivers/mxc/vpu_malone/vpu_b0.c b/drivers/mxc/vpu_malone/vpu_b0.c index a009bd96053b..a0ed963b53b4 100644 --- a/drivers/mxc/vpu_malone/vpu_b0.c +++ b/drivers/mxc/vpu_malone/vpu_b0.c @@ -1401,7 +1401,7 @@ static int v4l2_ioctl_reqbufs(struct file *file, vpu_err("%s reqbufs (%d) during streaming\n", q_data->type ? "CAPTURE" : "OUTPUT", reqbuf->count); - return -EINVAL; + return -EBUSY; } if (reqbuf->count > 0 && !q_data->sizeimage[0]) {