]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: potential uninitialized variable in amdgpu_vce_ring_parse_cs()
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 30 Sep 2017 08:13:28 +0000 (11:13 +0300)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 8 Nov 2017 22:54:59 +0000 (17:54 -0500)
commit88d4e4759ec56aae743f1778a03ed902073c4f60
tree5ebce93e3a03bcbbdb3849de2eb09d53e306ca40
parent517e7ae9c6b6ece11f5767fce494d43705d9d39b
drm/amdgpu: potential uninitialized variable in amdgpu_vce_ring_parse_cs()

We shifted some code around in commit e0438bc25c9e ("drm/amdgpu: move
amdgpu_cs_sysvm_access_required into find_mapping") and now my static
checker complains that "r" might not be initialized at the end of the
function.  I've reviewed the code, and that seems possible, but it's
also possible I may have missed something.

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_vce.c