Skip to content

Commit 9e6a98b

Browse files
takaswiegregkh
authored andcommitted
ALSA: fireface: fix return value in error path of isochronous resources reservation
commit 4801363 upstream. Even if isochronous resources reservation fails, error code doesn't return in pcm.hw_params callback. Cc: <stable@vger.kernel.org> #5.3+ Fixes: 55162d2 ("ALSA: fireface: reserve/release isochronous resources in pcm.hw_params/hw_free callbacks") Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Link: https://lore.kernel.org/r/20191209151655.GA8090@workstation Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 0421df6 commit 9e6a98b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/firewire/fireface/ff-pcm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ static int pcm_hw_params(struct snd_pcm_substream *substream,
219219
mutex_unlock(&ff->mutex);
220220
}
221221

222-
return 0;
222+
return err;
223223
}
224224

225225
static int pcm_hw_free(struct snd_pcm_substream *substream)

0 commit comments

Comments
 (0)