malloc_simple: Correct the alignment logic in memalign_simple()
authorSimon Glass <sjg@chromium.org>
Fri, 14 Aug 2015 19:26:43 +0000 (13:26 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 28 Aug 2015 16:33:14 +0000 (12:33 -0400)
commit972ea5339006e12a6c5d79f8c263ff5d1f463b30
tree83e4d039c9f342ad0beab26e74def46a6d9295ce
parent90c36d8ab91f07679145f7fe79d7a20d4b016b31
malloc_simple: Correct the alignment logic in memalign_simple()

This should use the align parameter, not bytes. Natural alignment is one
use case but should not be the only one supported by this function.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
common/malloc_simple.c