patch-2.1.4 linux/drivers/sound/opl3.c
Next file: linux/drivers/sound/patmgr.c
Previous file: linux/drivers/sound/mpu401.c
Back to the patch index
Back to the overall index
- Lines: 27
- Date:
Sun Oct 13 21:11:15 1996
- Orig file:
v2.1.3/linux/drivers/sound/opl3.c
- Orig date:
Sat Jul 6 11:31:42 1996
diff -u --recursive --new-file v2.1.3/linux/drivers/sound/opl3.c linux/drivers/sound/opl3.c
@@ -118,7 +118,7 @@
{
struct sbi_instrument ins;
- memcpy_fromfs ((char *) &ins, &((char *) arg)[0], sizeof (ins));
+ copy_from_user ((char *) &ins, &((char *) arg)[0], sizeof (ins));
if (ins.channel < 0 || ins.channel >= SBFM_MAXINSTR)
{
@@ -134,7 +134,7 @@
case SNDCTL_SYNTH_INFO:
devc->fm_info.nr_voices = (devc->nr_voice == 12) ? 6 : devc->nr_voice;
- memcpy_tofs (&((char *) arg)[0], &devc->fm_info, sizeof (devc->fm_info));
+ copy_to_user (&((char *) arg)[0], &devc->fm_info, sizeof (devc->fm_info));
return 0;
break;
@@ -876,7 +876,7 @@
return -(EINVAL);
}
- memcpy_fromfs (&((char *) &ins)[offs], &(addr)[offs], sizeof (ins) - offs);
+ copy_from_user (&((char *) &ins)[offs], &(addr)[offs], sizeof (ins) - offs);
if (ins.channel < 0 || ins.channel >= SBFM_MAXINSTR)
{
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov