Page MenuHomeFreeBSD

D13776.1796567933.diff
No OneTemporary

Authored By
Unknown
Size
652 B
Referenced Files
None
Subscribers
None

D13776.1796567933.diff

Index: head/stand/i386/libi386/comconsole.c
===================================================================
--- head/stand/i386/libi386/comconsole.c
+++ head/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
Sun, Dec 6, 2:38 PM (23 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42258849
Default Alt Text
D13776.1796567933.diff (652 B)

Event Timeline