mirror of
https://github.com/torvalds/linux.git
synced 2026-11-26 08:23:17 +00:00
use the wrong API when free dma. So when map dma use a flag to
demostrate whether it is 'pci_map_single' or 'pci_map_page'. When free
the dma, check the flags to select the right APIs('pci_unmap_single'
or 'pci_unmap_page').
set the flags type to u16 instead of unsigned long on David's comments.
Signed-off-by: Jie Yang <[email protected]>
Signed-off-by: David S. Miller <[email protected]>