patch-2.0.14 linux/drivers/sound/sound_timer.c
Next file: linux/drivers/sound/soundcard.c
Previous file: linux/drivers/sound/sequencer.c
Back to the patch index
Back to the overall index
- Lines: 27
- Date:
Sun Aug 18 10:46:49 1996
- Orig file:
v2.0.13/linux/drivers/sound/sound_timer.c
- Orig date:
Sun Jun 30 11:44:18 1996
diff -u --recursive --new-file v2.0.13/linux/drivers/sound/sound_timer.c linux/drivers/sound/sound_timer.c
@@ -214,7 +214,7 @@
case SNDCTL_TMR_TIMEBASE:
{
- int val = get_fs_long ((long *) arg);
+ int val = get_user ((int *) arg);
if (val)
{
@@ -231,7 +231,7 @@
case SNDCTL_TMR_TEMPO:
{
- int val = get_fs_long ((long *) arg);
+ int val = get_user ((int *) arg);
if (val)
{
@@ -251,7 +251,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