From e1c876a2f0df6c658a5ea0ddde14ee7201fd124b Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Fri, 3 Jun 2011 17:27:27 +0200 Subject: [PATCH] Fix missing error code in snd_ctl_hw_open() Signed-off-by: Takashi Iwai --- src/control/control_hw.c | 1 + 1 file changed, 1 insertion(+) 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;