Skip to content

Commit

Permalink
ALSA: fireface: fix return value in error path of isochronous resourc…
Browse files Browse the repository at this point in the history
…es reservation

BugLink: https://bugs.launchpad.net/bugs/1856869

commit 4801363 upstream.

Even if isochronous resources reservation fails, error code doesn't return
in pcm.hw_params callback.

Cc: <[email protected]> #5.3+
Fixes: 55162d2 ("ALSA: fireface: reserve/release isochronous resources in pcm.hw_params/hw_free callbacks")
Signed-off-by: Takashi Sakamoto <[email protected]>
Link: https://lore.kernel.org/r/20191209151655.GA8090@workstation
Signed-off-by: Takashi Iwai <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Connor Kuehl <[email protected]>
Signed-off-by: Kleber Sacilotto de Souza <[email protected]>
  • Loading branch information
takaswie authored and marcelocerri committed Jan 17, 2020
1 parent d82eca6 commit 9762280
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/firewire/fireface/ff-pcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ static int pcm_hw_params(struct snd_pcm_substream *substream,
mutex_unlock(&ff->mutex);
}

return 0;
return err;
}

static int pcm_hw_free(struct snd_pcm_substream *substream)
Expand Down

0 comments on commit 9762280

Please sign in to comment.