]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/mtd/nand/nand_util.c
mtd/nand/ubi: assortment of alignment fixes
[karo-tx-uboot.git] / drivers / mtd / nand / nand_util.c
index ee2c24df3b852f47214e7e885bb6cbfa9f9d4a8b..21b4a618ce503c98bce2c861bc1e876941d83dc6 100644 (file)
@@ -839,7 +839,7 @@ int nand_torture(nand_info_t *nand, loff_t offset)
 
        patt_count = ARRAY_SIZE(patterns);
 
-       buf = malloc(nand->erasesize);
+       buf = malloc_cache_aligned(nand->erasesize);
        if (buf == NULL) {
                puts("Out of memory for erase block buffer\n");
                return -ENOMEM;