mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
ALSA: dice: fix error path for initialization of stream structures
When introducing AMDTP domain to ALSA dice driver, error path does not
handle error correctly. This commit fixes the bug.
Fixes: e9f21129b8 ("ALSA: dice: support AMDTP domain")
Signed-off-by: Takashi Sakamoto <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
This commit is contained in:
parent
67d94c2136
commit
6e26d193d1
1 changed files with 1 additions and 1 deletions
|
|
@ -570,7 +570,7 @@ int snd_dice_stream_init_duplex(struct snd_dice *dice)
|
|||
destroy_stream(dice, AMDTP_OUT_STREAM, i);
|
||||
for (i = 0; i < MAX_STREAMS; i++)
|
||||
destroy_stream(dice, AMDTP_IN_STREAM, i);
|
||||
break;
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue