SWDEV-487903 - Fix for Empty Kernel Segfault in PAL

Change-Id: Ia1c19cf4ea24188cdb2d374b07f975f794e02dba
Dieser Commit ist enthalten in:
Rahul Manocha
2024-09-26 20:52:03 -07:00
committet von Rahul Manocha
Ursprung 614b00c20b
Commit 9da90fe848
+1 -1
Datei anzeigen
@@ -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();