]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
drm/amdgpu: fix uninitialized variable pasid_mapping_needed
authorColin Ian King <colin.king@canonical.com>
Thu, 3 Oct 2019 21:52:27 +0000 (22:52 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 4 Oct 2019 13:53:14 +0000 (08:53 -0500)
commit17cf678a33c6196a3df4531fe5aec91384c9eeb5
treee50d848e7764432b7cf707a150dc1aa31120177c
parentdab8f7e94ee491126b1ca89839a19acf3e33e929
drm/amdgpu: fix uninitialized variable pasid_mapping_needed

The boolean variable pasid_mapping_needed is not initialized and
there are code paths that do not assign it any value before it is
is read later.  Fix this by initializing pasid_mapping_needed to
false.

Addresses-Coverity: ("Uninitialized scalar variable")
Fixes: 6817bf283b2b ("drm/amdgpu: grab the id mgr lock while accessing passid_mapping")
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c