mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-22 09:58:09 +00:00
plugins/amdgpu: Zero ib_info on initialization
This struct was being used un-initialized, meaning it was filled with random garbage. Mea culpa. Signed-off-by: David Francis <David.Francis@amd.com>
This commit is contained in:
parent
6918998897
commit
60ee5ebd9d
@ -608,6 +608,7 @@ static int sdma_copy_bo(struct kfd_criu_bo_bucket bo_bucket, FILE *storage_fp,
|
|||||||
while (bytes_remain > 0) {
|
while (bytes_remain > 0) {
|
||||||
memset(&cs_req, 0, sizeof(cs_req));
|
memset(&cs_req, 0, sizeof(cs_req));
|
||||||
memset(&fence, 0, sizeof(fence));
|
memset(&fence, 0, sizeof(fence));
|
||||||
|
memset(&ib_info, 0, sizeof(ib_info));
|
||||||
memset(ib, 0, packets_per_buffer * 28);
|
memset(ib, 0, packets_per_buffer * 28);
|
||||||
|
|
||||||
if (type == SDMA_OP_VRAM_WRITE) {
|
if (type == SDMA_OP_VRAM_WRITE) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user