Skip to content

Commit

Permalink
plugins/amdgpu: Zero ib_info on initialization
Browse files Browse the repository at this point in the history
This struct was being used un-initialized, meaning it
was filled with random garbage.

Mea culpa.

Signed-off-by: David Francis <[email protected]>
  • Loading branch information
fdavid-amd authored and avagin committed Sep 17, 2024
1 parent 6551847 commit 412cdd2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/amdgpu/amdgpu_plugin.c
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,7 @@ static int sdma_copy_bo(struct kfd_criu_bo_bucket bo_bucket, FILE *storage_fp,
while (bytes_remain > 0) {
memset(&cs_req, 0, sizeof(cs_req));
memset(&fence, 0, sizeof(fence));
memset(&ib_info, 0, sizeof(ib_info));
memset(ib, 0, packets_per_buffer * 28);

if (type == SDMA_OP_VRAM_WRITE) {
Expand Down

0 comments on commit 412cdd2

Please sign in to comment.