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

Commit eb4293d1 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: camera: gen buf mng: Fix compat error handling"

parents 60bccb29 bf683612
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -223,7 +223,7 @@ static long msm_bmgr_subdev_fops_compat_ioctl(struct file *file,
		break;
	default:
		pr_debug("%s : unsupported compat type", __func__);
		break;
		return -ENOIOCTLCMD;
	}

	switch (cmd) {
@@ -231,9 +231,14 @@ static long msm_bmgr_subdev_fops_compat_ioctl(struct file *file,
	case VIDIOC_MSM_BUF_MNGR_BUF_DONE:
	case VIDIOC_MSM_BUF_MNGR_PUT_BUF:
		rc = v4l2_subdev_call(sd, core, ioctl, cmd, &buf_info);
		if (rc < 0) {
			pr_debug("%s : Subdev cmd %d fail", __func__, cmd);
			return rc;
		}
		break;
	default:
		pr_debug("%s : unsupported compat type", __func__);
		return -ENOIOCTLCMD;
		break;
	}