]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Potential uninitialized variable in amdgpu_vm_update_directories()
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 30 Sep 2017 08:14:13 +0000 (11:14 +0300)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 8 Nov 2017 22:55:04 +0000 (17:55 -0500)
commitedbaee7fee6de13fd89da4edde820e385e7ca9bd
treef88d3828b4aa2d94731d2d7e737bf711e3ac4716
parent88d4e4759ec56aae743f1778a03ed902073c4f60
drm/amdgpu: Potential uninitialized variable in amdgpu_vm_update_directories()

After commit df7f1d9eaeb5 ("drm/amdgpu: rework page directory filling
v2") then it becomes a lot harder to verify that "r" is initialized.  My
static checker complains and so I've reviewed the code.  It does look
like it might be buggy... Anyway, it doesn't hurt to set "r" to zero
at the start.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c