patch-2.1.4 linux/drivers/sound/midi_synth.c
Next file: linux/drivers/sound/midibuf.c
Previous file: linux/drivers/sound/maui.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Sun Oct 13 21:11:15 1996
- Orig file:
v2.1.3/linux/drivers/sound/midi_synth.c
- Orig date:
Sat Jul 6 11:31:42 1996
diff -u --recursive --new-file v2.1.3/linux/drivers/sound/midi_synth.c linux/drivers/sound/midi_synth.c
@@ -275,7 +275,7 @@
{
case SNDCTL_SYNTH_INFO:
- memcpy_tofs (&((char *) arg)[0], synth_devs[dev]->info, sizeof (struct synth_info));
+ copy_to_user (&((char *) arg)[0], synth_devs[dev]->info, sizeof (struct synth_info));
return 0;
break;
@@ -519,7 +519,7 @@
* been transferred already.
*/
- memcpy_fromfs (&((char *) &sysex)[offs], &(addr)[offs], hdr_size - offs);
+ copy_from_user (&((char *) &sysex)[offs], &(addr)[offs], hdr_size - offs);
if (count < sysex.len)
{
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov