]> git.alsa-project.org Git - alsa-utils.git/commitdiff
alsactl: add missing state_unlock() call
authorJaroslav Kysela <perex@perex.cz>
Wed, 24 Dec 2014 19:15:26 +0000 (20:15 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 24 Dec 2014 19:15:26 +0000 (20:15 +0100)
alsactl/state.c

index 0c897034057c836f1186d5ee352053617ae01adf..3908ec49b823ff64f82e167f3cdeda0313726dd5 100644 (file)
@@ -1678,6 +1678,8 @@ int load_state(const char *file, const char *initfile, const char *cardname,
                int card, first = 1;
                char cardname1[16];
 
+               if (lock_fd >= 0)
+                       state_unlock(lock_fd, file);
                error("Cannot open %s for reading: %s", file, snd_strerror(err));
                finalerr = err;
                if (cardname) {