Skip to content

Commit

Permalink
sound: OSS: fix error return in dma_ioctl()
Browse files Browse the repository at this point in the history
The returned error should stay negative

Signed-off-by: Roel Kluin <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
RoelKluin authored and tiwai committed Nov 12, 2009
1 parent faa1242 commit 0d26ce3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/oss/audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0d26ce3

Please sign in to comment.