diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2009-11-12 19:43:11 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-11-12 23:09:45 +0300 |
commit | 0d26ce3403b3841fa2656df08a819fc7eaebaa17 (patch) | |
tree | dd3fb8e5c7d3539673755a33ade0d0a8792b7623 | |
parent | faa1242c59311525b0f337e95ae3c324a833a8eb (diff) | |
download | linux-0d26ce3403b3841fa2656df08a819fc7eaebaa17.tar.xz |
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>
-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) 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; |