diff options
author | Alex Waterman <alexw@nvidia.com> | 2016-06-22 18:55:21 -0400 |
---|---|---|
committer | Terje Bergstrom <tbergstrom@nvidia.com> | 2016-06-23 16:02:44 -0400 |
commit | 41ec68376ff4291f9aa50df014439ce462a8e87f (patch) | |
tree | 44647a49e554cd14591d5ea6f780b51e4fe8c1c3 /scripts/spelling.txt | |
parent | df1ff34809756aba22957e19cb39c205f271f856 (diff) |
gpu: nvgpu: Handle allocators with a base of 0
When an allocator is created with a base of 0 the first allocated
block could well be 0. This appears to be an error since gk20a_balloc()
normally returns 0 for error cases.
This patch removes one block from the allocatable resources when base
is set to 0 so that code using gk20a_balloc() does not get tricked
into thinking valid allocations are OOM cases.
Change-Id: I641642d3f790c4c7860d0d1381f4db6f4f72e709
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/1169764
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'scripts/spelling.txt')
0 files changed, 0 insertions, 0 deletions