Commit 2d4a884f authored by Dan Carpenter's avatar Dan Carpenter Committed by Kamal Mostafa

drm/amdkfd: uninitialized variable in dbgdev_wave_control_set_registers()

commit 93fce954 upstream.

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

Fixes: 788bf83d ('drm/amdkfd: Add wave control operation to debugger')
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarOded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: default avatarKamal Mostafa <kamal@canonical.com>
parent 24f9c786
...@@ -513,7 +513,7 @@ static int dbgdev_wave_control_set_registers( ...@@ -513,7 +513,7 @@ static int dbgdev_wave_control_set_registers(
union SQ_CMD_BITS *in_reg_sq_cmd, union SQ_CMD_BITS *in_reg_sq_cmd,
union GRBM_GFX_INDEX_BITS *in_reg_gfx_index) union GRBM_GFX_INDEX_BITS *in_reg_gfx_index)
{ {
int status; int status = 0;
union SQ_CMD_BITS reg_sq_cmd; union SQ_CMD_BITS reg_sq_cmd;
union GRBM_GFX_INDEX_BITS reg_gfx_index; union GRBM_GFX_INDEX_BITS reg_gfx_index;
struct HsaDbgWaveMsgAMDGen2 *pMsg; struct HsaDbgWaveMsgAMDGen2 *pMsg;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment