Page MenuHomeFreeBSD

LinuxKPI: pci: fix dma handle type in match function
ClosedPublic

Authored by bz on Thu, Jul 16, 4:29 PM.
Tags
None
Referenced Files
F164184272: D58285.id182624.diff
Wed, Jul 29, 10:27 AM
Unknown Object (File)
Wed, Jul 29, 4:35 AM
Unknown Object (File)
Tue, Jul 28, 5:58 AM
Unknown Object (File)
Mon, Jul 27, 5:10 PM
Unknown Object (File)
Sun, Jul 26, 12:35 AM
Unknown Object (File)
Thu, Jul 23, 10:13 AM
Unknown Object (File)
Thu, Jul 23, 1:23 AM
Unknown Object (File)
Wed, Jul 22, 8:14 AM
Subscribers

Details

Summary

dma_addr_t is a vm_paddr_t which is a uint of some width. Rather than
passing pointers of it around pass the value.

Comparing the addresses of different storage for the same dma handle
(the actual bug here) will not work when passed to the devres match
function.

Sponsored by: The FreeBSD Foundation
Fixes: 0a575891211ef ("implement dmam_free_coherent()")
MFC after: 3 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable