patch-2.0.14 linux/drivers/sound/sys_timer.c

Next file: linux/fs/open.c
Previous file: linux/drivers/sound/soundcard.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.13/linux/drivers/sound/sys_timer.c linux/drivers/sound/sys_timer.c
@@ -213,7 +213,7 @@
 
     case SNDCTL_TMR_TIMEBASE:
       {
-	int             val = get_fs_long ((long *) arg);
+	int             val = get_user ((int *) arg);
 
 	if (val)
 	  {
@@ -230,7 +230,7 @@
 
     case SNDCTL_TMR_TEMPO:
       {
-	int             val = get_fs_long ((long *) arg);
+	int             val = get_user ((int *) arg);
 
 	if (val)
 	  {
@@ -249,7 +249,7 @@
       break;
 
     case SNDCTL_SEQ_CTRLRATE:
-      if (get_fs_long ((long *) arg) != 0)	/* Can't change */
+      if (get_user ((int *) arg) != 0)	/* Can't change */
 	return -(EINVAL);
 
       return snd_ioctl_return ((int *) arg, ((curr_tempo * curr_timebase) + 30) / 60);

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