summaryrefslogtreecommitdiffstats
path: root/sound/oss/audio.c
diff options
context:
space:
mode:
authorRoel Kluin <roel.kluin@gmail.com>2009-11-12 17:43:11 +0100
committerTakashi Iwai <tiwai@suse.de>2009-11-12 21:09:45 +0100
commit0d26ce3403b3841fa2656df08a819fc7eaebaa17 (patch)
treedd3fb8e5c7d3539673755a33ade0d0a8792b7623 /sound/oss/audio.c
parentfaa1242c59311525b0f337e95ae3c324a833a8eb (diff)
downloadop-kernel-dev-0d26ce3403b3841fa2656df08a819fc7eaebaa17.zip
op-kernel-dev-0d26ce3403b3841fa2656df08a819fc7eaebaa17.tar.gz
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/oss/audio.c b/sound/oss/audio.c
index b69c05b..7df48a2 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)
if ((err = audio_devs[dev]->d->prepare_for_input(dev,
dmap_in->fragment_size, dmap_in->nbufs)) < 0) {
spin_unlock_irqrestore(&dmap_in->lock,flags);
- return -err;
+ return err;
}
dmap_in->dma_mode = DMODE_INPUT;
audio_devs[dev]->enable_bits |= PCM_ENABLE_INPUT;
OpenPOWER on IntegriCloud