Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F174042111
D58285.id182624.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
951 B
Referenced Files
None
Subscribers
None
D58285.id182624.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D58285: LinuxKPI: pci: fix dma handle type in match function
Attached
Detach File
Event Timeline
Log In to Comment