Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177573462
D27669.1794777200.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
625 B
Referenced Files
None
Subscribers
None
D27669.1794777200.diff
View Options
Index: sys/dev/efidev/efirt.c
===================================================================
--- sys/dev/efidev/efirt.c
+++ sys/dev/efidev/efirt.c
@@ -314,18 +314,25 @@
{
struct efi_cfgtbl *ct;
u_long count;
+ int error;
if (efi_cfgtbl == NULL || efi_systbl == NULL)
return (ENXIO);
+ error = efi_enter();
+ if (error != 0)
+ return (error);
count = efi_systbl->st_entries;
ct = efi_cfgtbl;
while (count--) {
if (!bcmp(&ct->ct_uuid, uuid, sizeof(*uuid))) {
*ptr = (void *)efi_phys_to_kva(ct->ct_data);
+ efi_leave();
return (0);
}
ct++;
}
+
+ efi_leave();
return (ENOENT);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 15, 9:13 PM (21 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41748900
Default Alt Text
D27669.1794777200.diff (625 B)
Attached To
Mode
D27669: efirt: enter runtime environment to deref efi_cfgtbl
Attached
Detach File
Event Timeline