diff options
author | Christian König <christian.koenig@amd.com> | 2014-05-31 20:38:34 +0200 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2014-06-02 10:54:02 +0200 |
commit | 2f93dc32b09a2c97f6f33bafe4c6bdcec7cae774 (patch) | |
tree | 0cc2cb7371083fb3d53cf3dadf6d8e91dca7a1e1 | |
parent | ba6f582606655754d9dfbfc9dffe75dcf806f1dd (diff) | |
download | linux-2f93dc32b09a2c97f6f33bafe4c6bdcec7cae774.tar.gz linux-2f93dc32b09a2c97f6f33bafe4c6bdcec7cae774.tar.bz2 linux-2f93dc32b09a2c97f6f33bafe4c6bdcec7cae774.zip |
drm/radeon: fix vm buffer size estimation
Only relevant if we got VM_BLOCK_SIZE>9, but better save than sorry.
Signed-off-by: Christian König <christian.koenig@amd.com>
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_vm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_vm.c b/drivers/gpu/drm/radeon/radeon_vm.c index 1f426696de36..1491be90755e 100644 --- a/drivers/gpu/drm/radeon/radeon_vm.c +++ b/drivers/gpu/drm/radeon/radeon_vm.c @@ -132,7 +132,7 @@ struct radeon_cs_reloc *radeon_vm_get_bos(struct radeon_device *rdev, struct radeon_cs_reloc *list; unsigned i, idx; - list = kmalloc_array(vm->max_pde_used + 1, + list = kmalloc_array(vm->max_pde_used + 2, sizeof(struct radeon_cs_reloc), GFP_KERNEL); if (!list) return NULL; |