> Personally, I've always thought we were kidding ourselves by not doing
> the error checking you describe. From my somewhat-narrow perspective of
> network drivers and the libata storage driver, you have to deal with
> atomic allocations _anyway_ ... so why not make sure IOMMU overflow
> properly fails at the pci_map_foo level?
pci_map_single currently has no defined error return, but if you could
persuade all your drivers colleagues to fix their drivers to check
this I'm sure things would be better.
(on AMD64 the check could be trivially implemented as a macro because errors
always return a well defined address)
-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/