Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177546231
D13776.1794679143.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
637 B
Referenced Files
None
Subscribers
None
D13776.1794679143.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D13776: Handle misconfigured/noexistent pcidev for comconsole instead of BTX panic
Attached
Detach File
Event Timeline