mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-07-16 17:57:38 -04:00
Merge tag 'dma-mapping-4.17-4' of git://git.infradead.org/users/hch/dma-mapping
Pull dma-mapping fix from Christoph Hellwig: "Fix an incorrect warning selection introduced in the last merge window" * tag 'dma-mapping-4.17-4' of git://git.infradead.org/users/hch/dma-mapping: swiotlb: fix inversed DMA_ATTR_NO_WARN test
This commit is contained in:
@@ -737,7 +737,7 @@ swiotlb_alloc_buffer(struct device *dev, size_t size, dma_addr_t *dma_handle,
|
||||
swiotlb_tbl_unmap_single(dev, phys_addr, size, DMA_TO_DEVICE,
|
||||
DMA_ATTR_SKIP_CPU_SYNC);
|
||||
out_warn:
|
||||
if ((attrs & DMA_ATTR_NO_WARN) && printk_ratelimit()) {
|
||||
if (!(attrs & DMA_ATTR_NO_WARN) && printk_ratelimit()) {
|
||||
dev_warn(dev,
|
||||
"swiotlb: coherent allocation failed, size=%zu\n",
|
||||
size);
|
||||
|
||||
Reference in New Issue
Block a user