Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
290be0a4
Commit
290be0a4
authored
Jun 04, 2024
by
Ard Biesheuvel
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'efi/next' into efi/urgent
parents
c3f38fa6
7c23b186
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
drivers/firmware/efi/efi-pstore.c
drivers/firmware/efi/efi-pstore.c
+4
-4
drivers/firmware/efi/libstub/zboot.lds
drivers/firmware/efi/libstub/zboot.lds
+1
-0
No files found.
drivers/firmware/efi/efi-pstore.c
View file @
290be0a4
...
...
@@ -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
)
;
}
/*
...
...
@@ -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
))
...
...
@@ -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
)
...
...
@@ -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
;
}
...
...
drivers/firmware/efi/libstub/zboot.lds
View file @
290be0a4
...
...
@@ -41,6 +41,7 @@ SECTIONS
}
/DISCARD/ : {
*(.discard .discard.*)
*(.modinfo .init.modinfo)
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment