mirror of https://github.com/intel/gmmlib.git
Fix array out of bound warning
This commit is contained in:
parent
82ad44707d
commit
ed21f2fd2e
|
@ -133,6 +133,7 @@ void MACommonULT::UnLoadGmmDll(uint32_t AdapterIdx, uint32_t CountIdx)
|
|||
|
||||
void MACommonULT::GmmInitModule(uint32_t AdapterIdx, uint32_t CountIdx)
|
||||
{
|
||||
ASSERT_TRUE(AdapterIdx < MAX_NUM_ADAPTERS);
|
||||
GMM_STATUS Status = GMM_SUCCESS;
|
||||
ADAPTER_BDF AdapterBDF = GetAdapterBDF(AdapterIdx);
|
||||
GfxPlatform[AdapterIdx][CountIdx].eProductFamily = GetProductFamily(AdapterIdx);
|
||||
|
|
Loading…
Reference in New Issue