Page MenuHomeFreeBSD

D13776.1794679143.diff
No OneTemporary

Authored By
Unknown
Size
637 B
Referenced Files
None
Subscribers
None

D13776.1794679143.diff

Index: stand/i386/libi386/comconsole.c
===================================================================
--- stand/i386/libi386/comconsole.c
+++ stand/i386/libi386/comconsole.c
@@ -267,6 +267,16 @@
printf("Cannot read bar at 0x%x\n", locator);
return (CMD_ERROR);
}
+
+ /*
+ * biospci_read_config() sets port == 0xffffffff if the pcidev
+ * isn't found on the bus. Check for 0xffffffff and return to not
+ * panic in BTX.
+ */
+ if (port == 0xffffffff) {
+ printf("Cannot find specified pcidev\n");
+ return (CMD_ERROR);
+ }
if (!PCI_BAR_IO(port)) {
printf("Memory bar at 0x%x\n", locator);
return (CMD_ERROR);

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 14, 5:59 PM (5 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41729571
Default Alt Text
D13776.1794679143.diff (637 B)

Event Timeline