mirror of
				https://github.com/linux-sunxi/u-boot-sunxi.git
				synced 2024-02-12 11:16:03 +08:00 
			
		
		
		
	env: sata: Fix saveenv issue
Wrong env buffer was passed into sata write function, cause the saveenv not work. Signed-off-by: Ye Li <ye.li@nxp.com>
This commit is contained in:
		
							
								
								
									
										2
									
								
								env/sata.c
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								env/sata.c
									
									
									
									
										vendored
									
									
								
							| @ -65,7 +65,7 @@ static int env_sata_save(void) | ||||
| 		return 1; | ||||
|  | ||||
| 	printf("Writing to SATA(%d)...", env_sata); | ||||
| 	if (write_env(sata, CONFIG_ENV_SIZE, CONFIG_ENV_OFFSET, &env_new)) { | ||||
| 	if (write_env(sata, CONFIG_ENV_SIZE, CONFIG_ENV_OFFSET, (u_char *)env_new)) { | ||||
| 		puts("failed\n"); | ||||
| 		return 1; | ||||
| 	} | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Ye Li
					Ye Li