From: Takashi Iwai Date: Fri, 3 Jun 2011 15:27:27 +0000 (+0200) Subject: Fix missing error code in snd_ctl_hw_open() X-Git-Tag: v1.0.25~28 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=e1c876a2f0df6c658a5ea0ddde14ee7201fd124b;p=alsa-lib.git Fix missing error code in snd_ctl_hw_open() Signed-off-by: Takashi Iwai --- diff --git a/src/control/control_hw.c b/src/control/control_hw.c index cf258b43..16c4987d 100644 --- a/src/control/control_hw.c +++ b/src/control/control_hw.c @@ -414,6 +414,7 @@ int snd_ctl_hw_open(snd_ctl_t **handle, const char *name, int card, int mode) if (err < 0) { close(fd); free(hw); + return err; } ctl->ops = &snd_ctl_hw_ops; ctl->private_data = hw;