summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2020-01-01 00:10:19 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2020-01-01 00:10:19 +0000
commit385c7a997d8681da6bed36f1e6226d4aa57d9cab (patch)
treefd65f7965eb8d25f6d1582b7ef9002b37c1a3a01 /sys
parent30e520c0528d227952cbfdc57eb108e1ea6b9b2c (diff)
drm/amdgpu: fix uninitialized variable pasid_mapping_needed
From Colin Ian King 6032df37982ab948e6d2a41744deabef9181bec9 in linux 4.19.y/4.19.92 17cf678a33c6196a3df4531fe5aec91384c9eeb5 in mainline linux
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/drm/amd/amdgpu/amdgpu_vm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/amd/amdgpu/amdgpu_vm.c b/sys/dev/pci/drm/amd/amdgpu/amdgpu_vm.c
index c4622b091a0..4367ee2f5b5 100644
--- a/sys/dev/pci/drm/amd/amdgpu/amdgpu_vm.c
+++ b/sys/dev/pci/drm/amd/amdgpu/amdgpu_vm.c
@@ -762,7 +762,7 @@ int amdgpu_vm_flush(struct amdgpu_ring *ring, struct amdgpu_job *job, bool need_
id->oa_size != job->oa_size);
bool vm_flush_needed = job->vm_needs_flush;
struct dma_fence *fence = NULL;
- bool pasid_mapping_needed;
+ bool pasid_mapping_needed = false;
unsigned patch_offset = 0;
int r;