kconfig: fix MODULES-related bug in case of no .config
[sfrench/cifs-2.6.git] / scripts / kconfig / confdata.c
index 210a49e27d4702869f1d98316051db758627ab99..8dce5862550db06e857170fab294621dc17ecbf9 100644 (file)
@@ -170,8 +170,11 @@ int conf_read_simple(const char *name, int def)
                if (in)
                        goto load;
                sym_add_change_count(1);
-               if (!sym_defconfig_list)
+               if (!sym_defconfig_list) {
+                       if (modules_sym)
+                               sym_calc_value(modules_sym);
                        return 1;
+               }
 
                for_all_defaults(sym_defconfig_list, prop) {
                        if (expr_calc_value(prop->visible.expr) == no ||