Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F173482842
D6212.id15910.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
830 B
Referenced Files
None
Subscribers
None
D6212.id15910.diff
View Options
Index: sys/boot/efi/libefi/efipart.c
===================================================================
--- sys/boot/efi/libefi/efipart.c
+++ sys/boot/efi/libefi/efipart.c
@@ -65,14 +65,12 @@
/*
* info structure to support bcache
*/
-#define MAXPDDEV 31 /* see MAXDEV in libi386.h */
-
-static struct pdinfo
-{
+struct pdinfo {
int pd_unit; /* unit number */
int pd_open; /* reference counter */
void *pd_bcache; /* buffer cache data */
-} pdinfo [MAXPDDEV];
+};
+static struct pdinfo *pdinfo;
static int npdinfo = 0;
#define PD(dev) (pdinfo[(dev)->d_unit])
@@ -109,6 +107,9 @@
nout = 0;
bzero(aliases, nin * sizeof(EFI_HANDLE));
+ pdinfo = malloc(nin * sizeof(*pdinfo));
+ if (pdinfo == NULL)
+ return (ENOMEM);
for (n = 0; n < nin; n++) {
status = BS->HandleProtocol(hin[n], &devpath_guid,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Sep 27, 6:44 AM (4 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
39722983
Default Alt Text
D6212.id15910.diff (830 B)
Attached To
Mode
D6212: efipart: Support an arbitrary number of partitions
Attached
Detach File
Event Timeline
Log In to Comment