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

Commit 22f280b8 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: Check length of cmd_len to zero in isp driver"

parents 79abc4f5 9fbd9f9f
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -624,6 +624,12 @@ int msm_isp_proc_cmd(struct vfe_device *vfe_dev, void *arg)
		goto reg_cfg_failed;
	}

	if (!proc_cmd->cmd_len) {
		pr_err("%s: Passed cmd_len as 0\n", __func__);
		rc = -EINVAL;
		goto cfg_data_failed;
	}

	cfg_data = kzalloc(proc_cmd->cmd_len, GFP_KERNEL);
	if (!cfg_data) {
		pr_err("%s: cfg_data alloc failed\n", __func__);