]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - arch/arm/common/dmabounce.c
ARM: dmabounce: fix map_single() error return value
[mv-sheeva.git] / arch / arm / common / dmabounce.c
index e5681636626f5fab71e38ac758a4409b2a127247..841df7d21c2f64e8d8d9412ec7d848bd0da40318 100644 (file)
@@ -255,7 +255,7 @@ static inline dma_addr_t map_single(struct device *dev, void *ptr, size_t size,
                if (buf == 0) {
                        dev_err(dev, "%s: unable to map unsafe buffer %p!\n",
                               __func__, ptr);
-                       return 0;
+                       return ~0;
                }
 
                dev_dbg(dev,