Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F171743455
D19202.id53970.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
544 B
Referenced Files
None
Subscribers
None
D19202.id53970.diff
View Options
Index: head/usr.sbin/bhyve/pci_xhci.c
===================================================================
--- head/usr.sbin/bhyve/pci_xhci.c
+++ head/usr.sbin/bhyve/pci_xhci.c
@@ -2626,6 +2626,7 @@
char *uopt, *xopts, *config;
int usb3_port, usb2_port, i;
+ uopt = NULL;
usb3_port = sc->usb3_port_start - 1;
usb2_port = sc->usb2_port_start - 1;
devices = NULL;
@@ -2700,8 +2701,6 @@
sc->ndevices++;
}
- if (uopt != NULL)
- free(uopt);
portsfinal:
sc->portregs = calloc(XHCI_MAX_DEVS, sizeof(struct pci_xhci_portregs));
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Sep 14, 5:17 AM (9 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38888219
Default Alt Text
D19202.id53970.diff (544 B)
Attached To
Mode
D19202: bhyve(8) pci_xhci.c elliminate possible double free of uopt
Attached
Detach File
Event Timeline
Log In to Comment