Patch "drm/amdkfd: uninitialized variable in dbgdev_wave_control_set_registers()" has been added to the 4.5-stable tree
Subsystems (4)
This is a note to let you know that I've just added the patch titled
drm/amdkfd: uninitialized variable in dbgdev_wave_control_set_registers()
to the 4.5-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
drm-amdkfd-uninitialized-variable-in-dbgdev_wave_control_set_registers.patch
and it can be found in the queue-4.5 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
93fce954427effee89e44a976299b15dd75b4bbcMon Sep 17 00:00:00 2001
From: Dan Carpenter <[email protected]>
Date: Fri, 11 Mar 2016 10:51:51 +0300
Subject: drm/amdkfd: uninitialized variable in dbgdev_wave_control_set_registers()
From: Dan Carpenter <[email protected]>
commit 93fce954427effee89e44a976299b15dd75b4bbc upstream.
At the end of the function we expect "status" to be zero, but it's either -EINVAL or uninitialized.
--- drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c +1 -1
@@ -513,7 +513,7 @@ static int dbgdev_wave_control_set_regisunion SQ_CMD_BITS *in_reg_sq_cmd, union GRBM_GFX_INDEX_BITS *in_reg_gfx_index) { - int status; + int status = 0;union SQ_CMD_BITS reg_sq_cmd;union GRBM_GFX_INDEX_BITS reg_gfx_index;struct HsaDbgWaveMsgAMDGen2 *pMsg;
Patches currently in stable-queue which might be from [email protected] are
queue-4.5/drm-amdkfd-uninitialized-variable-in-dbgdev_wave_control_set_registers.patch