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

Next file: linux/drivers/sound/pas2_pcm.c
Previous file: linux/drivers/sound/mpu401.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.13/linux/drivers/sound/pas2_mixer.c linux/drivers/sound/pas2_mixer.c
@@ -218,7 +218,7 @@
 
   if (cmd == SOUND_MIXER_PRIVATE1)	/* Set loudness bit */
     {
-      int             level = get_fs_long ((long *) arg);
+      int             level = get_user ((int *) arg);
 
       if (level == -1)		/* Return current settings */
 	{
@@ -240,7 +240,7 @@
 
   if (cmd == SOUND_MIXER_PRIVATE2)	/* Set enhance bit */
     {
-      int             level = get_fs_long ((long *) arg);
+      int             level = get_user ((int *) arg);
 
       if (level == -1)		/* Return current settings */
 	{
@@ -269,7 +269,7 @@
 
   if (cmd == SOUND_MIXER_PRIVATE3)	/* Set mute bit */
     {
-      int             level = get_fs_long ((long *) arg);
+      int             level = get_user ((int *) arg);
 
       if (level == -1)		/* Return current settings */
 	{
@@ -293,7 +293,7 @@
   if (((cmd >> 8) & 0xff) == 'M')
     {
       if (_IOC_DIR (cmd) & _IOC_WRITE)
-	return snd_ioctl_return ((int *) arg, pas_mixer_set (cmd & 0xff, get_fs_long ((long *) arg)));
+	return snd_ioctl_return ((int *) arg, pas_mixer_set (cmd & 0xff, get_user ((int *) arg)));
       else
 	{			/*
 				 * Read parameters

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