Commit 0d26ce3403b3841fa2656df08a819fc7eaebaa17

Authored by Roel Kluin
Committed by Takashi Iwai
1 parent faa1242c59

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -838,7 +838,7 @@
838 838 if ((err = audio_devs[dev]->d->prepare_for_input(dev,
839 839 dmap_in->fragment_size, dmap_in->nbufs)) < 0) {
840 840 spin_unlock_irqrestore(&dmap_in->lock,flags);
841   - return -err;
  841 + return err;
842 842 }
843 843 dmap_in->dma_mode = DMODE_INPUT;
844 844 audio_devs[dev]->enable_bits |= PCM_ENABLE_INPUT;