]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - common/cmd_ubi.c
mtd/nand/ubi: assortment of alignment fixes
[karo-tx-uboot.git] / common / cmd_ubi.c
index cbc10c549474690f9adcb08c4c95d1ba479ed323..10eea655701e793fd6641f2e22972b78c1651f76 100644 (file)
@@ -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 = malloc_cache_aligned(tbuf_size);
        if (!tbuf) {
                printf("NO MEM\n");
                return ENOMEM;