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

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