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

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

Merge "msm: sensor: Fix for variable being de-referenced without proper check"

parents a89a16f8 10f1e052
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -781,6 +781,7 @@ static long msm_ois_subdev_do_ioctl(
	u32 = (struct msm_ois_cfg_data32 *)arg;
	parg = arg;


	switch (cmd) {
	case VIDIOC_MSM_OIS_CFG32:
		cmd = VIDIOC_MSM_OIS_CFG;
@@ -818,7 +819,6 @@ static long msm_ois_subdev_do_ioctl(
			settings.reg_setting =
				compat_ptr(settings32.reg_setting);

			ois_data.cfgtype = u32->cfgtype;
			ois_data.cfg.settings = &settings;
			parg = &ois_data;
			break;