patch-2.3.24 linux/drivers/char/bttv.c

Next file: linux/drivers/char/drm/proc.c
Previous file: linux/drivers/block/rd.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.23/linux/drivers/char/bttv.c linux/drivers/char/bttv.c
@@ -121,8 +121,9 @@
                 if (!pmd_none(*pmd)) {
                         ptep = pte_offset(pmd, adr);
                         pte = *ptep;
+                        /* Note; page_address will panic for us if the page is high */
                         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)