mirror_ubuntu-kernels/drivers/gpu/drm/amd
Colin Ian King 17cf678a33 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: 6817bf283b ("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>
2019-10-04 08:53:14 -05:00
..
acp treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
amdgpu drm/amdgpu: fix uninitialized variable pasid_mapping_needed 2019-10-04 08:53:14 -05:00
amdkfd drm/amdkfd: Improve KFD IOCTL printing 2019-10-03 09:11:05 -05:00
display drm/amd/display: Make some functions static 2019-10-04 08:53:14 -05:00
include drm/amd/amdgpu: add IH cg support on soc15 project 2019-10-03 09:11:04 -05:00
powerplay drm/amdgpu: Drop unused variable and statement 2019-10-03 09:11:06 -05:00