Initialize the last_jump_jiffies in atom_exec_context before it used
Subsystems (2)
PATCH 2/4 Initialize the last_jump_jiffies in atom_exec_context before it used
From: Jesse Zhang <[email protected]>
The parameter "last_jump_jiffies" should be initialized before being used in the function atom_op_jump.
Signed-off-by Jesse Zhang <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/atom.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/atom.c +1 -0
@@ -1243,6 +1243,7 @@ static int amdgpu_atom_execute_table_locked(struct atom_context *ctx, int index, ectx.ps_size = params_size; ectx.abort = false; ectx.last_jump =0 ; + ectx.last_jump_jiffies =0 ;if (ws) { ectx.ws =kcalloc (4 , ws,GFP_KERNEL ); ectx.ws_size = ws;
Signature · 1 line
2.25.1
Quoted 6 lines · On Tue, Apr 23, 2024 at 11:07 PM <[email protected]> wrote:
From: Jesse Zhang <[email protected]>
The parameter "
last_jump_jiffies" should be initialized before being used in the functionatom_op_jump.Signed-off-by Jesse Zhang <[email protected]>
Reviewed-by Alex Deucher <[email protected]>
Quoted 19 lines
--- drivers/gpu/drm/amd/amdgpu/atom.c | 1 + 1 file changed, 1 insertion(+)drivers/gpu/drm/amd/amdgpu/atom.c +1
-1@@ -1243,6 +1243,7 @@ static int amdgpu_atom_execute_table_locked(struct atom_context *ctx, int index, ectx.ps_size = params_size; ectx.abort = false; ectx.last_jump =0 ; + ectx.last_jump_jiffies =0 ;if (ws) { ectx.ws =kcalloc (4 , ws,GFP_KERNEL ); ectx.ws_size = ws; --2.25.1