mirror of https://github.com/thesofproject/sof.git
alloc: bdw: fix memory error on bdw
The maximum valid address should be base + size -1 Signed-off-by: Rander Wang <rander.wang@linux.intel.com>
This commit is contained in:
parent
a0268d61c8
commit
0122caf080
|
@ -581,7 +581,7 @@ void rfree(void *ptr)
|
|||
|
||||
/* panic if pointer is from system heap */
|
||||
if (ptr >= (void *)cpu_heap->heap &&
|
||||
ptr <= (void *)cpu_heap->heap + cpu_heap->size) {
|
||||
ptr < (void *)cpu_heap->heap + cpu_heap->size) {
|
||||
trace_error(TRACE_CLASS_MEM, "rfree() error: "
|
||||
"attempt to free system heap = %p, cpu = %d",
|
||||
(uintptr_t)ptr, cpu_get_id());
|
||||
|
|
Loading…
Reference in New Issue