Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge branch 'efi/next' into efi/urgent

+5 -4
+4 -4
drivers/firmware/efi/efi-pstore.c
··· 136 136 &size, record->buf); 137 137 if (status != EFI_SUCCESS) { 138 138 kfree(record->buf); 139 - return -EIO; 139 + return efi_status_to_err(status); 140 140 } 141 141 142 142 /* ··· 189 189 return 0; 190 190 191 191 if (status != EFI_SUCCESS) 192 - return -EIO; 192 + return efi_status_to_err(status); 193 193 194 194 /* skip variables that don't concern us */ 195 195 if (efi_guidcmp(guid, LINUX_EFI_CRASH_GUID)) ··· 227 227 record->size, record->psi->buf, 228 228 true); 229 229 efivar_unlock(); 230 - return status == EFI_SUCCESS ? 0 : -EIO; 230 + return efi_status_to_err(status); 231 231 }; 232 232 233 233 static int efi_pstore_erase(struct pstore_record *record) ··· 238 238 PSTORE_EFI_ATTRIBUTES, 0, NULL); 239 239 240 240 if (status != EFI_SUCCESS && status != EFI_NOT_FOUND) 241 - return -EIO; 241 + return efi_status_to_err(status); 242 242 return 0; 243 243 } 244 244
+1
drivers/firmware/efi/libstub/zboot.lds
··· 41 41 } 42 42 43 43 /DISCARD/ : { 44 + *(.discard .discard.*) 44 45 *(.modinfo .init.modinfo) 45 46 } 46 47 }