patch-2.1.4 linux/drivers/sound/sound_switch.c
Next file: linux/drivers/sound/sscape.c
Previous file: linux/drivers/sound/sequencer.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Sun Oct 13 21:11:16 1996
- Orig file:
v2.1.3/linux/drivers/sound/sound_switch.c
- Orig date:
Sun Jun 30 11:44:18 1996
diff -u --recursive --new-file v2.1.3/linux/drivers/sound/sound_switch.c linux/drivers/sound/sound_switch.c
@@ -316,7 +316,7 @@
if (l <= 0)
return 0;
- memcpy_tofs (&(buf)[0], &status_buf[status_ptr], l);
+ copy_to_user (&(buf)[0], &status_buf[status_ptr], l);
status_ptr += l;
return l;
@@ -515,7 +515,7 @@
strcpy (info.id, mixer_devs[dev]->id);
strcpy (info.name, mixer_devs[dev]->name);
- memcpy_tofs (&((char *) arg)[0], (char *) &info, sizeof (info));
+ copy_to_user (&((char *) arg)[0], (char *) &info, sizeof (info));
return 0;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov