diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common')
-rw-r--r-- | drivers/gpu/nvgpu/common/mm/vm.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/common/mm/vm.c b/drivers/gpu/nvgpu/common/mm/vm.c index 7f0b3d10..4e221500 100644 --- a/drivers/gpu/nvgpu/common/mm/vm.c +++ b/drivers/gpu/nvgpu/common/mm/vm.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2017-2018, NVIDIA CORPORATION. All rights reserved. | 2 | * Copyright (c) 2017-2019, NVIDIA CORPORATION. All rights reserved. |
3 | * | 3 | * |
4 | * Permission is hereby granted, free of charge, to any person obtaining a | 4 | * Permission is hereby granted, free of charge, to any person obtaining a |
5 | * copy of this software and associated documentation files (the "Software"), | 5 | * copy of this software and associated documentation files (the "Software"), |
@@ -873,12 +873,13 @@ struct nvgpu_mapped_buf *nvgpu_vm_map(struct vm_gk20a *vm, | |||
873 | map_addr, | 873 | map_addr, |
874 | flags, | 874 | flags, |
875 | map_key_kind); | 875 | map_key_kind); |
876 | nvgpu_mutex_release(&vm->update_gmmu_lock); | ||
877 | 876 | ||
878 | if (mapped_buffer) { | 877 | if (mapped_buffer) { |
879 | nvgpu_ref_get(&mapped_buffer->ref); | 878 | nvgpu_ref_get(&mapped_buffer->ref); |
879 | nvgpu_mutex_release(&vm->update_gmmu_lock); | ||
880 | return mapped_buffer; | 880 | return mapped_buffer; |
881 | } | 881 | } |
882 | nvgpu_mutex_release(&vm->update_gmmu_lock); | ||
882 | } | 883 | } |
883 | 884 | ||
884 | /* | 885 | /* |