camera: tegra: Fix security vulnerability issue
authorFrank Chen <frankc@nvidia.com>
Mon, 21 Mar 2016 17:40:45 +0000 (10:40 -0700)
committerMatthew Pedro <mapedro@nvidia.com>
Fri, 20 May 2016 17:59:11 +0000 (10:59 -0700)
commit1275778d6d510a62c884afc7494bd7cd055855ee
treed9788e2c51eeb9fa50525459188054d0f2242229
parent14359cb871606ffefa4ca2070b7e9ccb08dcd378
camera: tegra: Fix security vulnerability issue

We need to validate power on/off function size passed
in from user mode in order to avoid integer overflow
or out of memory failures.

Bug 1745100

Change-Id: Idddd848f7dc1e864559ad219f9204325128484e5
Signed-off-by: Frank Chen <frankc@nvidia.com>
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/1114354
(cherry picked from commit 8b3afcc132882f3102083f9a24de7f55476ca59b)
Reviewed-on: http://git-master/r/1150944
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
drivers/media/platform/tegra/cam_dev/virtual.c
include/media/camera.h