SWDEV-487903 - Fix for Empty Kernel Segfault in PAL

Change-Id: Ia1c19cf4ea24188cdb2d374b07f975f794e02dba
Этот коммит содержится в:
Rahul Manocha authored and Rahul Manocha committed 2024-09-30 13:00:15 -04:00
1 родитель 614b00c20b
Коммит 9da90fe848
1 file changed
+1 -1
+1 -1
Просмотреть файл
@@ -2196,7 +2196,7 @@ void Device::ScratchBuffer::destroyMemory() {
}
bool Device::allocScratch(uint regNum, const VirtualGPU* vgpu, uint vgprs) {
if (regNum > 0) {
if (regNum > 0 && vgprs > 0) {
// Serialize the scratch buffer allocation code
amd::ScopedLock lk(scratchAlloc_);
uint sb = vgpu->hwRing();