diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/mm/page_allocator.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/mm/page_allocator.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/common/mm/page_allocator.c b/drivers/gpu/nvgpu/common/mm/page_allocator.c index e559cb60..c8bc17c7 100644 --- a/drivers/gpu/nvgpu/common/mm/page_allocator.c +++ b/drivers/gpu/nvgpu/common/mm/page_allocator.c | |||
@@ -1022,7 +1022,7 @@ int nvgpu_page_allocator_init(struct gk20a *g, struct nvgpu_allocator *na, | |||
1022 | return -ENOMEM; | 1022 | return -ENOMEM; |
1023 | } | 1023 | } |
1024 | 1024 | ||
1025 | err = __nvgpu_alloc_common_init(na, g, name, a, false, &page_ops); | 1025 | err = nvgpu_alloc_common_init(na, g, name, a, false, &page_ops); |
1026 | if (err) { | 1026 | if (err) { |
1027 | goto fail; | 1027 | goto fail; |
1028 | } | 1028 | } |
@@ -1053,8 +1053,9 @@ int nvgpu_page_allocator_init(struct gk20a *g, struct nvgpu_allocator *na, | |||
1053 | 1053 | ||
1054 | snprintf(buddy_name, sizeof(buddy_name), "%s-src", name); | 1054 | snprintf(buddy_name, sizeof(buddy_name), "%s-src", name); |
1055 | 1055 | ||
1056 | err = nvgpu_buddy_allocator_init(g, &a->source_allocator, buddy_name, | 1056 | err = nvgpu_buddy_allocator_init(g, &a->source_allocator, NULL, |
1057 | base, length, blk_size, 0); | 1057 | buddy_name, base, length, blk_size, |
1058 | 0ULL, 0ULL); | ||
1058 | if (err) { | 1059 | if (err) { |
1059 | goto fail; | 1060 | goto fail; |
1060 | } | 1061 | } |