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
F163785903: D58285.diff
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
Unknown Object (File)
Tue, Jul 21, 8:38 AM
Unknown Object (File)
Tue, Jul 21, 7:01 AM
Unknown Object (File)
Mon, Jul 20, 3:45 PM
Unknown Object (File)
Mon, Jul 20, 5:01 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