SWDEV-378648 - Adding checks in runtime to abort when bad/invalid payload is sent.
Change-Id: Ibaa7927bacef1ba067ded5ccbf3f1111f31200a2
This commit is contained in:
committed by
Karthik Jayaprakash
parent
7b50c935f8
commit
297223a763
@@ -88,6 +88,7 @@ static void handlePayload(MessageHandler& messages, uint32_t service, uint64_t*
|
||||
}
|
||||
return;
|
||||
case SERVICE_DEVMEM: {
|
||||
guarantee(payload[0] != 0 || payload[1] != 0, "Both payloads cannot be 0 \n");
|
||||
if (payload[0]) {
|
||||
amd::Memory* mem = amd::MemObjMap::FindMemObj(reinterpret_cast<void*>(payload[0]));
|
||||
if (mem) {
|
||||
|
||||
Reference in New Issue
Block a user