summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorAntti Hatala <ahatala@nvidia.com>2010-04-28 07:06:06 -0700
committerAntti Hatala <ahatala@nvidia.com>2010-04-29 03:02:04 -0700
commitd444b79200ae8b4ca60c1e0f031103c502de22a1 (patch)
tree5aeb0b25695fcbde140ee6ec297f17ac1c8a887a /security
parent0ddde347ba084bb78ec7865415034efbb8922d3c (diff)
nvmap: sanitize heap order policy
Fix _nvmap_do_alloc() to always stick to the requested heap mask; to never allocate from heaps that were not specified in the mask. Factor out the default heap order policy into its own function, _nvmap_heap_policy(). Fix the kernel NvRmMemAlloc() implementation to honor the order of heaps requested by calling _nvmap_do_alloc() iteratively. Fold the various alloc functions into _nvmap_do_alloc() so that the allocation code is easier to follow. Temporarily disable use of IOVMM altogether, due to problems with resume from LP0. Change-Id: I9f720d6be67d255f7370e9daa29bfa2f20912820 Reviewed-on: http://git-master/r/1237 Reviewed-by: Antti Hatala <ahatala@nvidia.com> Tested-by: Antti Hatala <ahatala@nvidia.com>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions