Merge "msm: sensor: ois: add conditional check for ioctl"

This commit is contained in:
Linux Build Service Account 2017-08-08 09:02:14 -07:00 committed by Gerrit - the friendly Code Review server
commit f43cc12df0

View file

@ -818,6 +818,10 @@ static long msm_ois_subdev_do_ioctl(
parg = &ois_data;
break;
}
break;
case VIDIOC_MSM_OIS_CFG:
pr_err("%s: invalid cmd 0x%x received\n", __func__, cmd);
return -EINVAL;
}
rc = msm_ois_subdev_ioctl(sd, cmd, parg);