]> git.baikalelectronics.ru Git - kernel.git/commit
swiotlb: clear io_tlb_start and io_tlb_end in swiotlb_exit
authorChristoph Hellwig <hch@lst.de>
Mon, 14 Jan 2019 20:14:08 +0000 (21:14 +0100)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 16 Jan 2019 14:59:17 +0000 (09:59 -0500)
commitec849ac664d9faa0d7489eab0bf8778f9ec35c2a
treebaf6e0b03405ea007bd7865f1ca75d80fab44001
parent8b5c1a1b081cff38bca27a6abe1da0f1accff3a0
swiotlb: clear io_tlb_start and io_tlb_end in swiotlb_exit

Otherwise is_swiotlb_buffer will return false positives when
we first initialize a swiotlb buffer, but then free it because
we have an IOMMU available.

Fixes: 601f7fb0b0b1 ("dma-direct: merge swiotlb_dma_ops into the dma_direct code")
Reported-by: Sibren Vasse <sibren@sibrenvasse.nl>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Tested-by: Sibren Vasse <sibren@sibrenvasse.nl>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
kernel/dma/swiotlb.c