diff options
author | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2015-05-13 12:58:19 +0200 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2015-05-13 12:58:19 +0200 |
commit | 5c2752a59cde6424709ca20c00fb19f1b9d58bf3 (patch) | |
tree | 3a24f7a495d4f8ef921e9860bf1535b9db491307 /common | |
parent | c6d4d70e04873101f64370edfe3163075daae89d (diff) |
mtd/nand/ubi: assortment of alignment fixes
Various U-Boot adoptions/extensions to MTD/NAND/UBI did not take buffer
alignment into account which led to failures of the following form:
ERROR: v7_dcache_inval_range - start address is not aligned - 0x1f7f0108
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x1f7f1108
Diffstat (limited to 'common')
-rw-r--r-- | common/cmd_ubi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/cmd_ubi.c b/common/cmd_ubi.c index cbc10c54947..30a125951c9 100644 --- a/common/cmd_ubi.c +++ b/common/cmd_ubi.c @@ -363,7 +363,7 @@ int ubi_volume_read(char *volume, char *buf, size_t size) tbuf_size = vol->usable_leb_size; if (size < tbuf_size) tbuf_size = ALIGN(size, ubi->min_io_size); - tbuf = malloc(tbuf_size); + tbuf = memalign(ARCH_DMA_MINALIGN, tbuf_size); if (!tbuf) { printf("NO MEM\n"); return ENOMEM; |