git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12123 110e8d01-0319-4d1e-a829-52ad28d1bb01
This commit is contained in:
Giovanni Di Sirio 2018-07-01 07:25:53 +00:00
parent f08e027ec6
commit 45871e99e9
2 changed files with 2 additions and 1 deletions

View File

@ -266,7 +266,7 @@ void *chHeapAllocAligned(memory_heap_t *heapp, size_t size, unsigned align) {
/* More memory is required, tries to get it from the associated provider
else fails.*/
if (heapp->provider != NULL) {
ahp = heapp->provider((pages + 1U) * CH_HEAP_ALIGNMENT,
ahp = heapp->provider(pages * CH_HEAP_ALIGNMENT,
align,
sizeof (heap_header_t));
if (ahp != NULL) {

View File

@ -138,6 +138,7 @@
- EX: Updated LIS302DL to 1.1.0 (backported to 18.2.1).
- EX: Updated LPS25H to 1.1.0 (backported to 18.2.1).
- EX: Updated LSM303DLHC to 1.1.0 (backported to 18.2.1).
- LIB: Fixed heap allocation issue (bug #955)(backported to 18.2.2 and 17.6.5).
- HAL: Fixed win32 simulator HAL broken because a typo (bug #954)(backported
to 18.2.2).
- HAL: Fixed race condition in STM32 ADCv3 driver (bug #953)(backported to