kernel/vfs_quota: Add a missing spin_unlock().
authorSascha Wildner <saw@online.de>
Sun, 1 Jan 2012 01:31:11 +0000 (02:31 +0100)
committerSascha Wildner <saw@online.de>
Sun, 1 Jan 2012 01:31:11 +0000 (02:31 +0100)
sys/kern/vfs_quota.c

index 43efeff..339bd7a 100644 (file)
@@ -237,6 +237,7 @@ cmd_set_usage_all(struct mount *mp, prop_array_t args)
        iter = prop_array_iterator(args);
        if (iter == NULL) {
                kprintf("cmd_set_usage_all(): failed to create iterator\n");
+               spin_unlock(&mp->mnt_acct.ac_spin);
                return 1;
        }
        while ((item = prop_object_iterator_next(iter)) != NULL) {