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

This commit is contained in:
Linux Build Service Account 2017-07-28 00:21:06 -07:00 committed by Gerrit - the friendly Code Review server
commit 77c2b121e2

View file

@ -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;