Page MenuHomeFreeBSD

D49569.diff
No OneTemporary

D49569.diff

diff --git a/sys/compat/linuxkpi/common/src/linux_pci.c b/sys/compat/linuxkpi/common/src/linux_pci.c
--- a/sys/compat/linuxkpi/common/src/linux_pci.c
+++ b/sys/compat/linuxkpi/common/src/linux_pci.c
@@ -1471,14 +1471,19 @@
}
nseg = -1;
- if (_bus_dmamap_load_phys(obj->dmat, obj->dmamap, phys, len,
- BUS_DMA_NOWAIT, &seg, &nseg) != 0) {
+ error = _bus_dmamap_load_phys(obj->dmat, obj->dmamap, phys, len,
+ BUS_DMA_NOWAIT, &seg, &nseg);
+ if (error != 0) {
bus_dmamap_destroy(obj->dmat, obj->dmamap);
DMA_PRIV_UNLOCK(priv);
uma_zfree(linux_dma_obj_zone, obj);
counter_u64_add(lkpi_pci_nseg1_fail, 1);
- if (linuxkpi_debug)
+ if (linuxkpi_debug) {
+ device_printf(dev->bsddev, "%s: _bus_dmamap_load_phys "
+ "error %d, phys %#018jx len %zu\n", __func__,
+ error, (uintmax_t)phys, len);
dump_stack();
+ }
return (0);
}

File Metadata

Mime Type
text/plain
Expires
Fri, Oct 24, 11:21 AM (1 h, 7 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
24130117
Default Alt Text
D49569.diff (872 B)

Event Timeline