From: Roel Kluin Date: Thu, 12 Nov 2009 16:43:11 +0000 (+0100) Subject: sound: OSS: fix error return in dma_ioctl() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0d26ce3403b3841fa2656df08a819fc7eaebaa17;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git sound: OSS: fix error return in dma_ioctl() The returned error should stay negative Signed-off-by: Roel Kluin Signed-off-by: Takashi Iwai --- 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;