patch-2.3.24 linux/drivers/usb/cpia.c

Next file: linux/drivers/usb/ezusb.c
Previous file: linux/drivers/usb/acm.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.23/linux/drivers/usb/cpia.c linux/drivers/usb/cpia.c
@@ -52,7 +52,7 @@
 			ptep = pte_offset(pmd, adr);
 			pte = *ptep;
 			if (pte_present(pte))
-				ret = (pte_page(pte) | (adr & (PAGE_SIZE-1)));
+				ret = page_address(pte_page(pte)) | (adr & (PAGE_SIZE-1));
 		}
 	}
 	MDEBUG(printk("uv2kva(%lx-->%lx)", adr, ret));

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