Update of /cvsroot/kernelloader/linux/linux-2.6.35.4-mipsel-ps2/arch/mips/ps2
In directory vz-cvs-3.sog:/tmp/cvs-serv1292/arch/mips/ps2
Modified Files:
ps2mem.c
Log Message:
Fix converting to physical address in PS2IOC_PHYSADDR.
Index: ps2mem.c
===================================================================
RCS file: /cvsroot/kernelloader/linux/linux-2.6.35.4-mipsel-ps2/arch/mips/ps2/ps2mem.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** ps2mem.c 29 Aug 2012 22:14:51 -0000 1.2
--- ps2mem.c 20 Oct 2012 19:51:51 -0000 1.3
***************
*** 129,133 ****
/* get a physical address table */
for (i = 0; i < list->pages; i++) {
! phys = virt_to_bus((void *)list->page[i]);
if (copy_to_user(dest, &phys, sizeof(unsigned long)) != 0)
return -EFAULT;
--- 129,133 ----
/* get a physical address table */
for (i = 0; i < list->pages; i++) {
! phys = virt_to_bus(page_address(list->page[i]));
if (copy_to_user(dest, &phys, sizeof(unsigned long)) != 0)
return -EFAULT;
|