]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - common/cmd_ubi.c
karo: configs: Update the tx6*_defconfig files from defconfigs generated with 'make...
[karo-tx-uboot.git] / common / cmd_ubi.c
index 6c8570377e31d4726424eea67b4e53e417a08469..10eea655701e793fd6641f2e22972b78c1651f76 100644 (file)
@@ -114,7 +114,7 @@ static int ubi_check(char *name)
                        return 0;
        }
 
-       return -EEXIST;
+       return 1;
 }
 
 
@@ -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;