libhsakmt: Fix improper type range check in legacy queue creation
Enum type for compute AQL is defined as larger then targeted SDMAs enum types. We should only deny legacy calls for SDMA queues that require targeted engines. Change-Id: I6386a8700b3b18af825b6f0d2be27052cc8de0f5
此提交包含在:
1 父節點
8ea62f1cea
當前提交
ae99effb29
1 file changed
+1
-1
+1
-1
@@ -602,7 +602,7 @@ HSAKMT_STATUS HSAKMTAPI hsaKmtCreateQueue(HSAuint32 NodeId,
|
||||
HsaEvent *Event,
|
||||
HsaQueueResource *QueueResource)
|
||||
{
|
||||
if (Type >= HSA_QUEUE_SDMA_BY_ENG_ID)
|
||||
if (Type == HSA_QUEUE_SDMA_BY_ENG_ID)
|
||||
return HSAKMT_STATUS_ERROR;
|
||||
|
||||
return hsaKmtCreateQueueExt(NodeId, Type, QueuePercentage, Priority, 0,
|
||||
|
||||
Reference in new issue
封鎖使用者