radeon_hd: Fix app_server bt regression introduced at hrev46862
* We adjusted the array of pointers to be larger, but didn't adjust the malloc to be larger. * Should solve #10563 and maybe #10536
This commit is contained in:
@@ -134,7 +134,7 @@ init_common(int device, bool isClone)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// malloc for card gpio pin information
|
// malloc for card gpio pin information
|
||||||
for (uint32 id = 0; id < ATOM_MAX_SUPPORTED_DEVICE; id++) {
|
for (uint32 id = 0; id < MAX_GPIO_PINS; id++) {
|
||||||
gGPIOInfo[id] = (gpio_info*)malloc(sizeof(gpio_info));
|
gGPIOInfo[id] = (gpio_info*)malloc(sizeof(gpio_info));
|
||||||
|
|
||||||
if (gGPIOInfo[id] == NULL)
|
if (gGPIOInfo[id] == NULL)
|
||||||
@@ -225,11 +225,12 @@ uninit_common(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (uint32 id = 0; id < ATOM_MAX_SUPPORTED_DEVICE; id++) {
|
for (uint32 id = 0; id < ATOM_MAX_SUPPORTED_DEVICE; id++)
|
||||||
free(gConnector[id]);
|
free(gConnector[id]);
|
||||||
|
|
||||||
|
for (uint32 id = 0; id < MAX_GPIO_PINS; id++)
|
||||||
free(gGPIOInfo[id]);
|
free(gGPIOInfo[id]);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// #pragma mark - public accelerant functions
|
// #pragma mark - public accelerant functions
|
||||||
|
|||||||
Reference in New Issue
Block a user