mirror of
				https://xff.cz/git/u-boot/
				synced 2025-10-31 18:35:42 +01:00 
			
		
		
		
	efi_loader: variable: return error for APPEND_WRITE
The current efi_st_variable() doesn't support EFI_VARIABLE_APPEND_WRITE attiribute for now, and so should return an error. Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> Fix typos is commit message. Add TODO comment. Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
		
				
					committed by
					
						 Heinrich Schuchardt
						Heinrich Schuchardt
					
				
			
			
				
	
			
			
			
						parent
						
							609b6ba61d
						
					
				
				
					commit
					dbebae5ec7
				
			| @@ -427,7 +427,9 @@ efi_status_t EFIAPI efi_set_variable(u16 *variable_name, | ||||
| 	EFI_ENTRY("\"%ls\" %pUl %x %zu %p", variable_name, vendor, attributes, | ||||
| 		  data_size, data); | ||||
|  | ||||
| 	if (!variable_name || !vendor) { | ||||
| 	/* TODO: implement APPEND_WRITE */ | ||||
| 	if (!variable_name || !vendor || | ||||
| 	    (attributes & EFI_VARIABLE_APPEND_WRITE)) { | ||||
| 		ret = EFI_INVALID_PARAMETER; | ||||
| 		goto out; | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user