mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 01:49:46 +00:00
drm/amdkfd: uninitialized variable in dbgdev_wave_control_set_registers()
commit93fce95442upstream. At the end of the function we expect "status" to be zero, but it's either -EINVAL or uninitialized. Fixes:788bf83db3('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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
popcornmix
parent
619c8a8ea4
commit
e8c128d259
@@ -513,7 +513,7 @@ static int dbgdev_wave_control_set_registers(
|
||||
union 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;
|
||||
|
||||
Reference in New Issue
Block a user