patch-2.4.21 linux-2.4.21/include/asm-parisc/scatterlist.h

Next file: linux-2.4.21/include/asm-parisc/spinlock.h
Previous file: linux-2.4.21/include/asm-parisc/rtc.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.20/include/asm-parisc/scatterlist.h linux-2.4.21/include/asm-parisc/scatterlist.h
@@ -23,7 +23,7 @@
 };
 
 #define sg_virt_addr(sg) (((sg)->address) ? ((sg)->address) : \
-		((sg)->page->virtual + (sg)->offset))
+		(page_address((sg)->page) + (sg)->offset))
 
 #define sg_dma_address(sg) ((sg)->iova)
 #define sg_dma_len(sg)     ((sg)->iova_length)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)