]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - common/env_nand.c
env_nand: fix incorrect size parameter to ALLOC_CACHE_ALIGN_BUFFER
[karo-tx-uboot.git] / common / env_nand.c
index e6354728fbc97e826501da1742d9496a8d9d51e9..79e803370505dd8e996621d56757e44690817662 100644 (file)
@@ -226,7 +226,7 @@ int saveenv(void)
 int saveenv(void)
 {
        int     ret = 0;
-       ALLOC_CACHE_ALIGN_BUFFER(env_t, env_new, sizeof(env_t));
+       ALLOC_CACHE_ALIGN_BUFFER(env_t, env_new, 1);
        ssize_t len;
        char    *res;
        nand_erase_options_t nand_erase_options;