File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ static int efi_pstore_read_func(struct pstore_record *record,
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,7 +189,7 @@ static ssize_t efi_pstore_read(struct pstore_record *record)
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,7 +227,7 @@ static int efi_pstore_write(struct pstore_record *record)
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,7 +238,7 @@ 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
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ SECTIONS
41
41
}
42
42
43
43
/DISCARD/ : {
44
+ *(.discard .discard.*)
44
45
*(.modinfo .init.modinfo)
45
46
}
46
47
}
You can’t perform that action at this time.
0 commit comments