patch-2.1.4 linux/drivers/sound/dmasound.c

Next file: linux/drivers/sound/gus_wave.c
Previous file: linux/drivers/sound/dmabuf.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.3/linux/drivers/sound/dmasound.c linux/drivers/sound/dmasound.c
@@ -717,7 +717,7 @@
     if (sound.soft.stereo)
 	count &= ~1;
     used = count;
-    memcpy_fromfs(p, userPtr, count);
+    copy_from_user(p, userPtr, count);
     *frameUsed += used;
     return(used);
 }
@@ -771,7 +771,7 @@
 	void *p = (u_short *)&frame[*frameUsed];
 	count = min(userCount, frameLeft) & ~3;
 	used = count;
-	memcpy_fromfs(p, userPtr, count);
+	copy_from_user(p, userPtr, count);
 	*frameUsed += used;
     }
     return(used);
@@ -1265,7 +1265,7 @@
 	void *p = &frame[*frameUsed];
 	count = min(userCount, frameLeft) & ~1;
 	used = count;
-	memcpy_fromfs(p, userPtr, count);
+	copy_from_user(p, userPtr, count);
     } else {
 	u_char *left = &frame[*frameUsed>>1];
 	u_char *right = left+sq.block_size_half;
@@ -2908,7 +2908,7 @@
 	n = count;
     if (n <= 0)
 	return(0);
-    memcpy_tofs(dest, &state.buf[state.ptr], n);
+    copy_to_user(dest, &state.buf[state.ptr], n);
     state.ptr += n;
     return(n);
 }

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