]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
media: tegra: nvavp: Fix reloc offset check
authorSomu Sundaram <somasundaram@nvidia.com>
Fri, 18 Mar 2016 07:22:59 +0000 (12:52 +0530)
committermobile promotions <svcmobile_promotions@nvidia.com>
Mon, 28 Mar 2016 20:10:11 +0000 (13:10 -0700)
commit1d58fc311d5eeb4e525c195c99593d8309a565a1
treef352083ae79ea01f7242c867771ae880f39b5927
parent46a5e15c65fc9e5bc7053273a5a64f495d19e717
media: tegra: nvavp: Fix reloc offset check

- Check whether command buffer data offset is 32-bit
  aligned
- Check whether relocation offset is 32-bit aligned
  and calculated offset is within command buffer size
- Check whether target offset is 32-bit aligned
  and derived address is within target buffer size

Bug 1741516

Change-Id: Ie5370bc1538c8cf9a702904fb88eb850baeb063d
Signed-off-by: Somu Sundaram <somasundaram@nvidia.com>
Reviewed-on: http://git-master/r/1112711
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: Somu Sundaram <somasundarams@nvidia.com>
Reviewed-by: Jaiprkash Khemkaar <jkhemkar@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
drivers/media/platform/tegra/nvavp/nvavp_dev.c