]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/powerpc/lib/dma-noncoherent.c
PCI hotplug: cpqphp: fix kernel NULL pointer dereference
[linux-2.6-omap-h63xx.git] / arch / powerpc / lib / dma-noncoherent.c
index 5d83907f6591dbf9cf68b32dbceaa99ddaf3563e..31734c0969cd28014b226f300f0b1932186ea4e1 100644 (file)
@@ -203,7 +203,7 @@ __dma_alloc_coherent(size_t size, dma_addr_t *handle, gfp_t gfp)
                /*
                 * Set the "dma handle"
                 */
-               *handle = page_to_bus(page);
+               *handle = page_to_phys(page);
 
                do {
                        BUG_ON(!pte_none(*pte));