patch-2.1.4 linux/drivers/block/amiflop.c

Next file: linux/drivers/block/ataflop.c
Previous file: linux/arch/i386/mm/fault.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.3/linux/drivers/block/amiflop.c linux/drivers/block/amiflop.c
@@ -1447,7 +1447,7 @@
 	    getprm.head=unit[drive].type->heads;
 	    getprm.sect=unit[drive].sects;
 	    getprm.size=unit[drive].blocks;
-	    memcpy_tofs((void *)param,(void *)&getprm,sizeof(struct floppy_struct));
+	    copy_to_user((void *)param,(void *)&getprm,sizeof(struct floppy_struct));
 	    break;
 	  case BLKGETSIZE:
             error = verify_area(VERIFY_WRITE, (void *)param,
@@ -1471,7 +1471,7 @@
 	      unit[drive].type->read_size);
 	    if (error)
 	      return error;
-	    memcpy_tofs((void *)param, raw_buf, unit[drive].type->read_size);
+	    copy_to_user((void *)param, raw_buf, unit[drive].type->read_size);
 	    return unit[drive].type->read_size;
 #endif
 	  default:

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov