diff options
author | Takashi Iwai <tiwai@suse.de> | 2009-03-23 19:36:16 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-03-23 19:36:16 -0400 |
commit | 9fb5430c3d6e96a74fd4406dbe7608f36abb9987 (patch) | |
tree | 1c990d9f2f91f6daabbf2de957bea744dd2bcb71 /sound/oss/pss.c | |
parent | 4c5ecb7e59662a76754efdd41c6ed4415e6e9840 (diff) | |
parent | e5bf48437370f3fc603e2dce12e8d3fb1a6a2457 (diff) |
Merge branch 'topic/oss-fix' into for-linus
Diffstat (limited to 'sound/oss/pss.c')
-rw-r--r-- | sound/oss/pss.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sound/oss/pss.c b/sound/oss/pss.c index 16ed06950dc1..16517a5a1301 100644 --- a/sound/oss/pss.c +++ b/sound/oss/pss.c | |||
@@ -457,10 +457,9 @@ static void pss_mixer_reset(pss_confdata *devc) | |||
457 | } | 457 | } |
458 | } | 458 | } |
459 | 459 | ||
460 | static int set_volume_mono(unsigned __user *p, int *aleft) | 460 | static int set_volume_mono(unsigned __user *p, unsigned int *aleft) |
461 | { | 461 | { |
462 | int left; | 462 | unsigned int left, volume; |
463 | unsigned volume; | ||
464 | if (get_user(volume, p)) | 463 | if (get_user(volume, p)) |
465 | return -EFAULT; | 464 | return -EFAULT; |
466 | 465 | ||
@@ -471,10 +470,11 @@ static int set_volume_mono(unsigned __user *p, int *aleft) | |||
471 | return 0; | 470 | return 0; |
472 | } | 471 | } |
473 | 472 | ||
474 | static int set_volume_stereo(unsigned __user *p, int *aleft, int *aright) | 473 | static int set_volume_stereo(unsigned __user *p, |
474 | unsigned int *aleft, | ||
475 | unsigned int *aright) | ||
475 | { | 476 | { |
476 | int left, right; | 477 | unsigned int left, right, volume; |
477 | unsigned volume; | ||
478 | if (get_user(volume, p)) | 478 | if (get_user(volume, p)) |
479 | return -EFAULT; | 479 | return -EFAULT; |
480 | 480 | ||