Page MenuHomeFreeBSD

D58285.id182624.diff
No OneTemporary

D58285.id182624.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
@@ -1916,7 +1916,7 @@
struct lkpi_devres_dmam_coherent {
size_t size;
- dma_addr_t *handle;
+ dma_addr_t handle;
void *mem;
};
@@ -1926,7 +1926,7 @@
struct lkpi_devres_dmam_coherent *dr;
dr = p;
- dma_free_coherent(dev, dr->size, dr->mem, *dr->handle);
+ dma_free_coherent(dev, dr->size, dr->mem, dr->handle);
}
static int
@@ -1952,7 +1952,7 @@
{
struct lkpi_devres_dmam_coherent match = {
.size = size,
- .handle = &dma_handle,
+ .handle = dma_handle,
.mem = addr
};
int error;
@@ -1979,7 +1979,7 @@
dr->size = size;
dr->mem = linux_dma_alloc_coherent(dev, size, dma_handle, flag);
- dr->handle = dma_handle;
+ dr->handle = *dma_handle;
if (dr->mem == NULL) {
lkpi_devres_free(dr);
return (NULL);

File Metadata

Mime Type
text/plain
Expires
Thu, Oct 1, 4:18 AM (7 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35171641
Default Alt Text
D58285.id182624.diff (951 B)

Event Timeline