summaryrefslogtreecommitdiff
path: root/env
diff options
context:
space:
mode:
authorAlex Kiernan <alex.kiernan@gmail.com>2018-02-07 20:01:54 +0000
committerTom Rini <trini@konsulko.com>2018-02-12 15:31:18 -0500
commitcda87ec5587261cc813b404f713b102afede0800 (patch)
treed050ecac6806f58e2da30075d9b005e05843947b /env
parentf3177d02f33472352b022adbaf5c47cceebc930d (diff)
downloadu-boot-cda87ec5587261cc813b404f713b102afede0800.tar.gz
Fix misaligned buffer in env_fat_save
When saving the environment on a platform which has DMA alignment larger than the natural alignment, env_fat_save triggers a debug message in file_fat_write: Saving Environment to FAT... writing uboot.env FAT: Misaligned buffer address (9df1c8e0) OK Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Diffstat (limited to 'env')
-rw-r--r--env/fat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/env/fat.c b/env/fat.c
index 35f7ab5c6d..e6bd1f915d 100644
--- a/env/fat.c
+++ b/env/fat.c
@@ -36,7 +36,7 @@ DECLARE_GLOBAL_DATA_PTR;
#ifdef CMD_SAVEENV
static int env_fat_save(void)
{
- env_t env_new;
+ env_t __aligned(ARCH_DMA_MINALIGN) env_new;
struct blk_desc *dev_desc = NULL;
disk_partition_t info;
int dev, part;