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
F165380702: D58285.diff
Fri, Aug 7, 10:07 PM
Unknown Object (File)
Sat, Aug 1, 1:18 PM
Unknown Object (File)
Sat, Aug 1, 7:57 AM
Unknown Object (File)
Fri, Jul 31, 11:51 AM
Unknown Object (File)
Fri, Jul 31, 6:18 AM
Unknown Object (File)
Wed, Jul 29, 10:27 AM
Unknown Object (File)
Wed, Jul 29, 4:35 AM
Unknown Object (File)
Tue, Jul 28, 5:58 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 Passed
Unit
No Test Coverage
Build Status
Buildable 74853
Build 71736: arc lint + arc unit