Files
rocm-systems/projects/rocr-runtime/src
Felix Kuehling 021ceccd80 libhsakmt: Fix use of uninitialized variable
When is hsaKmtCreateQueue called first time for node
doorbells[NodeId].size is initialized to zero in init_process_doorbells
but used to calculate the doorbell offset. It works just by accident
because doorbells[NodeId].size is uint32_t so -1 will be 0xFFFFFFFF which
is zero extended into 0x00000000FFFFFFFF and it will work as long as mmap
offset bits are not within lower 32 bits.

Bug: https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface/issues/78
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Change-Id: Ia791adfc51363d4704cb50fa4f01137b7dd48a75


[ROCm/ROCR-Runtime commit: 8e69b9c70e]
2022-11-25 14:07:45 -05:00
..
2022-11-17 10:04:24 -05:00
2022-07-21 16:08:19 -04:00
2022-11-25 15:01:53 +00:00
2020-03-20 17:50:47 +00:00
2017-05-31 14:38:59 -04:00
2018-07-08 22:38:22 -04:00
2018-07-08 22:38:22 -04:00
2021-04-16 00:10:41 -04:00
2018-01-25 16:48:17 -05:00