Fix array out of bound warning

This commit is contained in:
Manish7093 2022-12-07 21:23:01 +05:30 committed by GitHub
parent 82ad44707d
commit ed21f2fd2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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);