BACKPORT: msm: camera: cpp: Add validation for v4l2 ioctl arguments

In CPP v4l2 ioctl command is made, if _IOC_DIR(cmd) is
_IOC_NONE, then the user-supplied argument arg is not checked
and an information disclosure is possible

Bug: 29464815
CRs-Fixed: 1042068
Change-Id: Ibcd0c4d6605ecdabe4f720aaf47366dbd7503ad1
Signed-off-by: Sunid Wilson <sunidw@codeaurora.org>
Signed-off-by: Biswajit Paul <biswajitpaul@codeaurora.org>
Signed-off-by: Siqi Lin <siqilin@google.com>

(cherry-picked from commit 35b674b22af887a05a1697c8518fd89b8cd87a3d)
1 file changed