media: tegra: nvavp: Fix heap overflow
authorSomasundaram S <somasundaram@nvidia.com>
Thu, 10 Mar 2016 12:03:11 +0000 (17:03 +0530)
committerMatthew Pedro <mapedro@nvidia.com>
Wed, 16 Mar 2016 16:36:37 +0000 (09:36 -0700)
commit6458d55f01d9256959b13ea5791067407b82ed20
tree6a8b60cea39f18b66b9f4fdc6edccaf764e6231b
parent5c8ffda63151d70390f10e8c9d111baafc786fda
media: tegra: nvavp: Fix heap overflow

Increase NVAVP_MAX_RELOCATION_COUNT to max. possible value
and add check to return error if num_relocs in
nvavp_pushbuffer_submit_ioctl exceeds
NVAVP_MAX_RELOCATION_COUNT

Bug 1739930

Change-Id: Ief36cedd692aa53135fc6a0039b19f18609259dd
Signed-off-by: Somasundaram S <somasundaram@nvidia.com>
Reviewed-on: http://git-master/r/1030885
Tested-by: Somu Sundaram <somasundarams@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
drivers/media/platform/tegra/nvavp/nvavp_dev.c
include/linux/tegra_nvavp.h