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:
parent
4ba44196e6
commit
ba30a633b6
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue