Skip to content

Commit

Permalink
Merge branch 'efi/next' into efi/urgent
Browse files Browse the repository at this point in the history
  • Loading branch information
Ard Biesheuvel committed Jun 4, 2024
2 parents c3f38fa + 7c23b18 commit 290be0a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/firmware/efi/efi-pstore.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ static int efi_pstore_read_func(struct pstore_record *record,
&size, record->buf);
if (status != EFI_SUCCESS) {
kfree(record->buf);
return -EIO;
return efi_status_to_err(status);
}

/*
Expand Down Expand Up @@ -189,7 +189,7 @@ static ssize_t efi_pstore_read(struct pstore_record *record)
return 0;

if (status != EFI_SUCCESS)
return -EIO;
return efi_status_to_err(status);

/* skip variables that don't concern us */
if (efi_guidcmp(guid, LINUX_EFI_CRASH_GUID))
Expand Down Expand Up @@ -227,7 +227,7 @@ static int efi_pstore_write(struct pstore_record *record)
record->size, record->psi->buf,
true);
efivar_unlock();
return status == EFI_SUCCESS ? 0 : -EIO;
return efi_status_to_err(status);
};

static int efi_pstore_erase(struct pstore_record *record)
Expand All @@ -238,7 +238,7 @@ static int efi_pstore_erase(struct pstore_record *record)
PSTORE_EFI_ATTRIBUTES, 0, NULL);

if (status != EFI_SUCCESS && status != EFI_NOT_FOUND)
return -EIO;
return efi_status_to_err(status);
return 0;
}

Expand Down
1 change: 1 addition & 0 deletions drivers/firmware/efi/libstub/zboot.lds
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ SECTIONS
}

/DISCARD/ : {
*(.discard .discard.*)
*(.modinfo .init.modinfo)
}
}
Expand Down

0 comments on commit 290be0a

Please sign in to comment.