]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Fix missing error code in snd_ctl_hw_open()
authorTakashi Iwai <tiwai@suse.de>
Fri, 3 Jun 2011 15:27:27 +0000 (17:27 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 3 Jun 2011 15:27:27 +0000 (17:27 +0200)
Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/control/control_hw.c

index cf258b43646c5109f692fd1e99d61772ca0fb1af..16c4987d2e9c2e42ff90c8fbb0d0636f3a6959f5 100644 (file)
@@ -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;