]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
media: tegra: nvavp: Fix reloc offset check l4t/l4t-r24.1 origin/l4t/l4t-r24.1 rtime/l4t/l4t-r24.1 tegra-l4t-r24.1
authorSomu Sundaram <somasundaram@nvidia.com>
Fri, 18 Mar 2016 07:22:59 +0000 (12:52 +0530)
committerWinnie Hsu <whsu@nvidia.com>
Wed, 4 May 2016 03:58:51 +0000 (20:58 -0700)
commit07fb031a9cea70cb733203d3c9867000639c6e87
tree82cef121ae9ff38382528412be36215fa61ffc69
parent2e9b20a443e53c59e36796bfd0f69e97d2f054d6
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
(cherry picked from commit 1d58fc311d5eeb4e525c195c99593d8309a565a1)
Reviewed-on: http://git-master/r/1140881
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Tested-by: Winnie Hsu <whsu@nvidia.com>
drivers/media/platform/tegra/nvavp/nvavp_dev.c