SELinux: if sel_make_bools errors don't leave inconsistent state
[pandora-kernel.git] / security / selinux / selinuxfs.c
index f466587..b4f802d 100644 (file)
@@ -1238,6 +1238,7 @@ static int sel_make_bools(void)
                kfree(bool_pending_names[i]);
        kfree(bool_pending_names);
        kfree(bool_pending_values);
+       bool_num = 0;
        bool_pending_names = NULL;
        bool_pending_values = NULL;