diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2019-12-09 16:03:04 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2019-12-09 20:05:12 +0100 |
commit | 59a126aa3113fc23f03fedcafe3705f1de5aff50 (patch) | |
tree | a1671f54c702944b73a0f2de3756f1eed83c6385 /sound | |
parent | ALSA: firewire-motu: fix double unlocked 'motu->mutex' (diff) | |
download | linux-59a126aa3113fc23f03fedcafe3705f1de5aff50.tar.xz linux-59a126aa3113fc23f03fedcafe3705f1de5aff50.zip |
ALSA: oxfw: 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> #5.3+
Fixes: 4f380d007052 ("ALSA: oxfw: configure packet format in pcm.hw_params callback")
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>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/firewire/oxfw/oxfw-pcm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/firewire/oxfw/oxfw-pcm.c b/sound/firewire/oxfw/oxfw-pcm.c index 9124603edabe..67fd3e844dd6 100644 --- a/sound/firewire/oxfw/oxfw-pcm.c +++ b/sound/firewire/oxfw/oxfw-pcm.c @@ -285,7 +285,7 @@ static int pcm_playback_hw_params(struct snd_pcm_substream *substream, mutex_unlock(&oxfw->mutex); } - return 0; + return err; } static int pcm_capture_hw_free(struct snd_pcm_substream *substream) |