msm: sensor: ois: add conditional check for ioctl

Add conditional check when sending VIDIOC_MSM_OIS_CFG.

Change-Id: I128591359d7996fe73e9ac3d8a17c47004a2e04e
CRs-Fixed:2078155
Signed-off-by: Tanvi Aggarwal <tanvia@codeaurora.org>
This commit is contained in:
Tanvi Aggarwal 2017-08-02 11:20:36 +05:30 committed by Gerrit - the friendly Code Review server
parent 4ba44196e6
commit ba30a633b6

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