diff options
Diffstat (limited to 'os/lib/src')
| -rw-r--r-- | os/lib/src/chmemheaps.c | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/os/lib/src/chmemheaps.c b/os/lib/src/chmemheaps.c index 2646f2929..a03bde2e7 100644 --- a/os/lib/src/chmemheaps.c +++ b/os/lib/src/chmemheaps.c @@ -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) {
 | 
