aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/swiotlb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/swiotlb.c b/lib/swiotlb.c
index 7f5e21b9c16b..c2a4e6401456 100644
--- a/lib/swiotlb.c
+++ b/lib/swiotlb.c
@@ -647,7 +647,7 @@ swiotlb_full(struct device *dev, size_t size, int dir, int do_panic)
647 * the damage, or panic when the transfer is too big. 647 * the damage, or panic when the transfer is too big.
648 */ 648 */
649 printk(KERN_ERR "DMA: Out of SW-IOMMU space for %zu bytes at " 649 printk(KERN_ERR "DMA: Out of SW-IOMMU space for %zu bytes at "
650 "device %s\n", size, dev ? dev->bus_id : "?"); 650 "device %s\n", size, dev ? dev_name(dev) : "?");
651 651
652 if (size > io_tlb_overflow && do_panic) { 652 if (size > io_tlb_overflow && do_panic) {
653 if (dir == DMA_FROM_DEVICE || dir == DMA_BIDIRECTIONAL) 653 if (dir == DMA_FROM_DEVICE || dir == DMA_BIDIRECTIONAL)