drm/amdkfd: uninitialized variable in dbgdev_wave_control_set_registers()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 11 Mar 2016 07:51:51 +0000 (10:51 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Tue, 15 Mar 2016 12:09:37 +0000 (14:09 +0200)
commit93fce954427effee89e44a976299b15dd75b4bbc
tree7dd2296debde8f11f050871ba5552b1f7e90cd26
parent211afd577a186e18d3eece543c6767420d6f6737
drm/amdkfd: uninitialized variable in dbgdev_wave_control_set_registers()

At the end of the function we expect "status" to be zero, but it's
either -EINVAL or uninitialized.

Fixes: 788bf83db301 ('drm/amdkfd: Add wave control operation to debugger')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c