Page MenuHomeFreeBSD

D29604.id86910.diff
No OneTemporary

D29604.id86910.diff

diff --git a/sys/dev/pci/pci_user.c b/sys/dev/pci/pci_user.c
--- a/sys/dev/pci/pci_user.c
+++ b/sys/dev/pci/pci_user.c
@@ -878,6 +878,11 @@
if (!PCI_BAR_MEM(pm->pm_value))
return (EIO);
membase = pm->pm_value & PCIM_BAR_MEM_BASE;
+ error = BUS_TRANSLATE_RESOURCE(pcidev, SYS_RES_MEMORY, membase,
+ &membase);
+ if (error != 0)
+ return (error);
+
pbase = trunc_page(membase);
plen = round_page(membase + ((pci_addr_t)1 << pm->pm_size)) -
pbase;

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 20, 2:46 AM (6 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14728406
Default Alt Text
D29604.id86910.diff (468 B)

Event Timeline