Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

iommu/vt-d: Use WARN_ON_ONCE instead of BUG_ON in qi_flush_dev_iotlb()

A misaligned address is only worth a warning, and not
stopping the while execution path with a BUG_ON().

Signed-off-by: Joerg Roedel <jroedel@suse.de>

+1 -1
+1 -1
drivers/iommu/dmar.c
··· 1345 1345 struct qi_desc desc; 1346 1346 1347 1347 if (mask) { 1348 - BUG_ON(addr & ((1ULL << (VTD_PAGE_SHIFT + mask)) - 1)); 1348 + WARN_ON_ONCE(addr & ((1ULL << (VTD_PAGE_SHIFT + mask)) - 1)); 1349 1349 addr |= (1ULL << (VTD_PAGE_SHIFT + mask - 1)) - 1; 1350 1350 desc.high = QI_DEV_IOTLB_ADDR(addr) | QI_DEV_IOTLB_SIZE; 1351 1351 } else