diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/mm/vm.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/mm/vm.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/gpu/nvgpu/common/mm/vm.c b/drivers/gpu/nvgpu/common/mm/vm.c index 3d10ff48..2ce62e75 100644 --- a/drivers/gpu/nvgpu/common/mm/vm.c +++ b/drivers/gpu/nvgpu/common/mm/vm.c | |||
@@ -672,11 +672,9 @@ int nvgpu_vm_get_buffers(struct vm_gk20a *vm, | |||
672 | nvgpu_rbtree_enum_start(0, &node, vm->mapped_buffers); | 672 | nvgpu_rbtree_enum_start(0, &node, vm->mapped_buffers); |
673 | while (node) { | 673 | while (node) { |
674 | mapped_buffer = mapped_buffer_from_rbtree_node(node); | 674 | mapped_buffer = mapped_buffer_from_rbtree_node(node); |
675 | if (mapped_buffer->user_mapped) { | 675 | buffer_list[i] = mapped_buffer; |
676 | buffer_list[i] = mapped_buffer; | 676 | nvgpu_ref_get(&mapped_buffer->ref); |
677 | nvgpu_ref_get(&mapped_buffer->ref); | 677 | i++; |
678 | i++; | ||
679 | } | ||
680 | nvgpu_rbtree_enum_next(&node, node); | 678 | nvgpu_rbtree_enum_next(&node, node); |
681 | } | 679 | } |
682 | 680 | ||