OSDN Git Service
(root)
/
android-x86
/
external-efivar.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22b1a74
)
efiboot: fix a bad error check
author
Peter Jones
<pjones@redhat.com>
Thu, 21 Jun 2018 17:55:45 +0000
(13:55 -0400)
committer
Peter Jones
<pjones@redhat.com>
Thu, 21 Jun 2018 19:36:33 +0000
(15:36 -0400)
Signed-off-by: Peter Jones <pjones@redhat.com>
src/linux-acpi.c
patch
|
blob
|
history
diff --git
a/src/linux-acpi.c
b/src/linux-acpi.c
index
3eac526
..
88f0084
100644
(file)
--- a/
src/linux-acpi.c
+++ b/
src/linux-acpi.c
@@
-93,7
+93,7
@@
hid_err:
errno = 0;
fbuf = NULL;
rc = read_sysfs_file(&fbuf, "%s/firmware_node/uid", path);
- if ((rc <
= 0 && errno != ENOENT) || fbuf == NULL
) {
+ if ((rc <
0 && errno != ENOENT) || (rc > 0 && fbuf == NULL)
) {
efi_error("could not read %s/firmware_node/uid", path);
return -1;
}