Skip to content

Commit 4801363

Browse files
takaswietiwai
authored andcommitted
ALSA: fireface: fix return value in error path of isochronous resources reservation
Even if isochronous resources reservation fails, error code doesn't return in pcm.hw_params callback. Cc: <stable@vger.kernel.org> raspberrypi#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>
1 parent 59a126a commit 4801363

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎sound/firewire/fireface/ff-pcm.c‎

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

250-
return 0;
250+
return err;
251251
}
252252

253253
static int pcm_hw_free(struct snd_pcm_substream *substream)

0 commit comments

Comments
 (0)