diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2009-11-12 11:43:11 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-11-12 15:09:45 -0500 |
commit | 0d26ce3403b3841fa2656df08a819fc7eaebaa17 (patch) | |
tree | dd3fb8e5c7d3539673755a33ade0d0a8792b7623 /sound/oss/audio.c | |
parent | faa1242c59311525b0f337e95ae3c324a833a8eb (diff) |
sound: OSS: fix error return in dma_ioctl()
The returned error should stay negative
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/oss/audio.c')
-rw-r--r-- | sound/oss/audio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/oss/audio.c b/sound/oss/audio.c index b69c05b7ea7b..7df48a25c4ee 100644 --- a/sound/oss/audio.c +++ b/sound/oss/audio.c | |||
@@ -838,7 +838,7 @@ static int dma_ioctl(int dev, unsigned int cmd, void __user *arg) | |||
838 | if ((err = audio_devs[dev]->d->prepare_for_input(dev, | 838 | if ((err = audio_devs[dev]->d->prepare_for_input(dev, |
839 | dmap_in->fragment_size, dmap_in->nbufs)) < 0) { | 839 | dmap_in->fragment_size, dmap_in->nbufs)) < 0) { |
840 | spin_unlock_irqrestore(&dmap_in->lock,flags); | 840 | spin_unlock_irqrestore(&dmap_in->lock,flags); |
841 | return -err; | 841 | return err; |
842 | } | 842 | } |
843 | dmap_in->dma_mode = DMODE_INPUT; | 843 | dmap_in->dma_mode = DMODE_INPUT; |
844 | audio_devs[dev]->enable_bits |= PCM_ENABLE_INPUT; | 844 | audio_devs[dev]->enable_bits |= PCM_ENABLE_INPUT; |