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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Dec 2017 10:26:34 +0000 (11:26 +0100)
commit2d8b3a9b7853dbbf12c853674ef4403481ab1513
tree3c0c3a765a2d6c5eb19cb54977da1baf8974d541
parent23506bc7fdb2313c63d8811967fcf82d5764b973
drm/amdgpu: potential uninitialized variable in amdgpu_vce_ring_parse_cs()

commit 40a9960b046290939b56ce8e51f365258f27f264 upstream.

We shifted some code around in commit 9cca0b8e5df0 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c