mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-19 03:15:00 +00:00
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>
This commit is contained in:
parent
f3177d02f3
commit
cda87ec558
1 changed files with 1 additions and 1 deletions
2
env/fat.c
vendored
2
env/fat.c
vendored
|
@ -36,7 +36,7 @@ DECLARE_GLOBAL_DATA_PTR;
|
||||||
#ifdef CMD_SAVEENV
|
#ifdef CMD_SAVEENV
|
||||||
static int env_fat_save(void)
|
static int env_fat_save(void)
|
||||||
{
|
{
|
||||||
env_t env_new;
|
env_t __aligned(ARCH_DMA_MINALIGN) env_new;
|
||||||
struct blk_desc *dev_desc = NULL;
|
struct blk_desc *dev_desc = NULL;
|
||||||
disk_partition_t info;
|
disk_partition_t info;
|
||||||
int dev, part;
|
int dev, part;
|
||||||
|
|
Loading…
Add table
Reference in a new issue