From: Chih-Wei Huang Date: Mon, 14 Jun 2021 05:08:08 +0000 (+0800) Subject: control: remap - fix an infinite recursive call in the async callback X-Git-Tag: v1.2.5.1~1 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=f4c061f349188c548497607efd4622c6e6a43270;p=alsa-lib.git control: remap - fix an infinite recursive call in the async callback The function snd_ctl_remap_async will call itself infinitely. Looks like a typo. Fixes: a64391a42 ("control: remap plugin - initial version") Signed-off-by: Chih-Wei Huang Signed-off-by: Jaroslav Kysela --- diff --git a/src/control/control_remap.c b/src/control/control_remap.c index 17c6558a..a85c1725 100644 --- a/src/control/control_remap.c +++ b/src/control/control_remap.c @@ -323,7 +323,7 @@ static int snd_ctl_remap_nonblock(snd_ctl_t *ctl, int nonblock) static int snd_ctl_remap_async(snd_ctl_t *ctl, int sig, pid_t pid) { snd_ctl_remap_t *priv = ctl->private_data; - return snd_ctl_remap_async(priv->child, sig, pid); + return snd_ctl_async(priv->child, sig, pid); } static int snd_ctl_remap_subscribe_events(snd_ctl_t *ctl, int subscribe)