msm: ais: sensor: flash: add conditional check for ioctl

Add conditional check when sending VIDIOC_MSM_FLASH_CFG
in 32-bit process.

Change-Id: Ia4255aba26c634018163e2cc3c1170f71b1eb661
CRs-Fixed: 2092793
Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
This commit is contained in:
Rahul Sharma 2017-09-12 11:01:57 +05:30 committed by Gerrit - the friendly Code Review server
parent e9ecb016e6
commit 5a12dd28f1

View file

@ -1092,6 +1092,9 @@ static long msm_flash_subdev_do_ioctl(
break;
}
break;
case VIDIOC_MSM_FLASH_CFG:
pr_err("invalid cmd 0x%x received\n", cmd);
return -EINVAL;
default:
return msm_flash_subdev_ioctl(sd, cmd, arg);
}