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:
parent
e9ecb016e6
commit
5a12dd28f1
1 changed files with 3 additions and 0 deletions
|
@ -1092,6 +1092,9 @@ static long msm_flash_subdev_do_ioctl(
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case VIDIOC_MSM_FLASH_CFG:
|
||||||
|
pr_err("invalid cmd 0x%x received\n", cmd);
|
||||||
|
return -EINVAL;
|
||||||
default:
|
default:
|
||||||
return msm_flash_subdev_ioctl(sd, cmd, arg);
|
return msm_flash_subdev_ioctl(sd, cmd, arg);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue