tegra: camera: validate PCLLK_IOCTL_SEQ_XX params
authorGreg Hackmann <ghackmann@google.com>
Fri, 19 Feb 2016 23:04:23 +0000 (15:04 -0800)
committerWinnie Hsu <whsu@nvidia.com>
Tue, 16 May 2017 19:38:09 +0000 (12:38 -0700)
commit36d071c93e79a3b340aa76c83079cdf441b5d381
tree1c2d01f8f82d693838563312318f5bb5269cb952
parent651cce8f33cff889007ca563cdcff98abe3a5e90
tegra: camera: validate PCLLK_IOCTL_SEQ_XX params

The driver expects the userspace-provided table to be terminated with
addr == CAMERA_TABLE_END.  Reject tables that aren't.

(back ported from Nexus N9 project)

Bug 1832830

Change-Id: Id1e168e02fbf323d094fe8c36c6e4bd90cceee4f
Signed-off-by: Greg Hackmann <ghackmann@google.com>
Reviewed-on: http://git-master/r/1271368
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Frank Chen <frankc@nvidia.com>
Tested-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
drivers/media/platform/tegra/camera.c