Skip to content

Commit 93fce95

Browse files
Dan Carpenterogabbay
authored andcommitted
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: 788bf83 ('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>
1 parent 211afd5 commit 93fce95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ static int dbgdev_wave_control_set_registers(
513513
union SQ_CMD_BITS *in_reg_sq_cmd,
514514
union GRBM_GFX_INDEX_BITS *in_reg_gfx_index)
515515
{
516-
int status;
516+
int status = 0;
517517
union SQ_CMD_BITS reg_sq_cmd;
518518
union GRBM_GFX_INDEX_BITS reg_gfx_index;
519519
struct HsaDbgWaveMsgAMDGen2 *pMsg;

0 commit comments

Comments
 (0)